-
Global information
- Generated on Thu Jul 16 23:00:07 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 35,743 log entries in 5s
- Log start from 2026-07-16 07:00:01 to 2026-07-16 22:00:00
-
Overview
Global Stats
- 46 Number of unique normalized queries
- 182 Number of queries
- 17m9s Total query duration
- 2026-07-16 07:00:01 First query
- 2026-07-16 21:00:01 Last query
- 2 queries/s at 2026-07-16 21:00:01 Query peak
- 17m9s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 17m9s Execute total duration
- 7 Number of events
- 6 Number of unique normalized events
- 2 Max number of times the same event was reported
- 0 Number of cancellation
- 140 Total number of automatic vacuums
- 213 Total number of automatic analyzes
- 1,619 Number temporary file
- 83.45 MiB Max size of temporary file
- 10.56 MiB Average size of temporary file
- 3,316 Total number of sessions
- 7 sessions at 2026-07-16 09:00:01 Session peak
- 2d21h57m45s Total duration of sessions
- 1m15s Average duration of sessions
- 0 Average queries per session
- 310ms Average queries duration per session
- 1m15s Average idle time per session
- 3,316 Total number of connections
- 5 connections/s at 2026-07-16 14:00:01 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-16 21:00:01 Date
SELECT Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-16 21:00:01 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-16 13:17:30 Date
Queries duration
Key values
- 17m9s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 16 07 3 0ms 1s866ms 1s417ms 0ms 0ms 2s385ms 08 7 0ms 11s254ms 4s336ms 1s82ms 6s972ms 11s254ms 09 9 0ms 7s437ms 5s190ms 6s923ms 7s227ms 9s998ms 10 56 0ms 47s687ms 7s535ms 46s909ms 47s701ms 57s750ms 11 4 0ms 7s256ms 4s95ms 0ms 2s196ms 7s256ms 12 21 0ms 7s255ms 4s464ms 7s144ms 7s255ms 16s122ms 13 25 0ms 47s978ms 5s769ms 3s995ms 21s34ms 47s978ms 14 6 0ms 1s957ms 1s206ms 0ms 1s18ms 3s172ms 15 15 0ms 10s578ms 6s629ms 7s254ms 7s534ms 14s128ms 16 15 0ms 9s165ms 6s628ms 7s110ms 9s165ms 19s524ms 17 16 0ms 7s235ms 3s774ms 6s812ms 7s235ms 14s6ms 18 1 0ms 1s88ms 1s88ms 0ms 0ms 1s88ms 19 1 0ms 1s157ms 1s157ms 0ms 0ms 1s157ms 20 1 0ms 1s89ms 1s89ms 0ms 0ms 1s89ms 21 2 0ms 1s171ms 1s110ms 0ms 0ms 2s221ms 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 16 07 3 0 1s417ms 0ms 0ms 1s866ms 08 7 0 4s336ms 0ms 1s82ms 7s332ms 09 9 0 5s190ms 0ms 6s923ms 7s276ms 10 56 0 7s535ms 7s230ms 46s909ms 55s388ms 11 4 0 4s95ms 0ms 0ms 6s929ms 12 21 0 4s464ms 1s309ms 7s144ms 10s273ms 13 19 0 6s676ms 0ms 3s995ms 47s582ms 14 6 0 1s206ms 0ms 0ms 3s48ms 15 15 0 6s629ms 7s19ms 7s254ms 10s578ms 16 15 0 6s628ms 0ms 7s110ms 14s371ms 17 16 0 3s774ms 0ms 6s812ms 12s483ms 18 1 0 1s88ms 0ms 0ms 0ms 19 1 0 1s157ms 0ms 0ms 0ms 20 1 0 1s89ms 0ms 0ms 0ms 21 2 0 1s110ms 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 16 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 5 1 0 0 2s894ms 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 16 07 0 3 3.00 0.00% 08 0 7 7.00 0.00% 09 0 9 9.00 0.00% 10 0 56 56.00 0.00% 11 0 3 3.00 0.00% 12 0 21 21.00 0.00% 13 0 25 25.00 0.00% 14 0 6 6.00 0.00% 15 0 15 15.00 0.00% 16 0 15 15.00 0.00% 17 0 16 16.00 0.00% 18 0 1 1.00 0.00% 19 0 1 1.00 0.00% 20 0 1 1.00 0.00% 21 0 2 2.00 0.00% 22 0 0 0.00 0.00% Day Hour Count Average / Second Jul 16 07 218 0.06/s 08 221 0.06/s 09 225 0.06/s 10 221 0.06/s 11 220 0.06/s 12 229 0.06/s 13 222 0.06/s 14 218 0.06/s 15 222 0.06/s 16 223 0.06/s 17 221 0.06/s 18 217 0.06/s 19 219 0.06/s 20 218 0.06/s 21 221 0.06/s 22 1 0.00/s Day Hour Count Average Duration Average idle time Jul 16 07 220 1m6s 1m6s 08 221 52s676ms 52s539ms 09 225 3m23s 3m23s 10 219 13s700ms 11s773ms 11 220 32s538ms 32s463ms 12 229 2m21s 2m20s 13 223 1m40s 1m39s 14 217 20ms 0ms 15 223 1m47s 1m47s 16 222 2m17s 2m16s 17 221 14s377ms 14s103ms 18 217 19ms 14ms 19 220 1m26s 1m26s 20 217 18ms 13ms 21 222 2m51s 2m51s 22 0 0ms 0ms -
Connections
Established Connections
Key values
- 5 connections Connection Peak
- 2026-07-16 14:00:01 Date
Connections per database
Key values
- etendo Main Database
- 3,316 connections Total
Connections per user
Key values
- tad Main User
- 3,316 connections Total
-
Sessions
Simultaneous sessions
Key values
- 7 sessions Session Peak
- 2026-07-16 09:00:01 Date
Histogram of session times
Key values
- 3,241 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 3,316 sessions Total
Sessions per user
Key values
- tad Main User
- 3,316 sessions Total
Sessions per host
Key values
- 127.0.0.1 Main Host
- 3,316 sessions Total
Sessions per application
Key values
- psql Main Application
- 3,316 sessions Total
Application Count Total Duration Average Duration DBeaver 26.0.1 - Main 1 7m13s 7m13s DBeaver 26.0.1 - Main 1 7m55s 7m55s DBeaver 26.0.1 - Metadata 1 7m13s 7m13s DBeaver 26.0.1 - Metadata 1 7m55s 7m55s DBeaver 26.0.1 - Read PostgreSQL database list 1 385ms 385ms DBeaver 26.0.1 - SQLEditor 1 7m11s 7m11s DBeaver 26.0.1 - SQLEditor 1 9s478ms 9s478ms openbravo 51 2d21h19m 1h21m32s pg_profile 45 9s477ms 210ms psql 3,213 56s333ms 17ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 34,856 buffers Checkpoint Peak
- 2026-07-16 13:22:40 Date
- 270.073 seconds Highest write time
- 0.006 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-07-16 16:17:03 Date
Checkpoints distance
Key values
- 701.40 Mo Distance Peak
- 2026-07-16 13:22:40 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 16 07 12,373 1,224.088s 0.009s 1,224.111s 08 18,575 1,852.973s 0.015s 1,853.008s 09 18,020 1,756.399s 0.014s 1,756.431s 10 22,914 2,299.384s 0.02s 2,299.426s 11 16,166 1,532.08s 0.011s 1,532.107s 12 22,965 2,293.093s 0.018s 2,293.143s 13 48,173 1,504.601s 0.011s 1,504.663s 14 17,602 1,758.576s 0.013s 1,758.603s 15 19,640 1,900.564s 0.014s 1,900.601s 16 24,198 2,412.082s 0.015s 2,412.126s 17 22,011 1,997.475s 0.017s 1,997.516s 18 46,711 1,914.558s 0.009s 1,914.579s 19 14,967 1,427.427s 0.007s 1,427.443s 20 14,905 1,422.126s 0.007s 1,422.143s 21 14,809 1,423.038s 0.007s 1,423.054s 22 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 16 07 0 6 0 426 0.001s 0.009s 08 0 9 0 2,234 0.001s 0.013s 09 0 8 0 1,546 0.001s 0.011s 10 0 11 0 2,595 0.001s 0.012s 11 0 7 0 1,356 0.001s 0.011s 12 0 11 0 2,514 0.001s 0.013s 13 0 28 0 764 0.001s 0.011s 14 0 8 0 1,026 0.001s 0.013s 15 0 9 0 1,868 0.001s 0.011s 16 0 11 0 2,435 0.001s 0.012s 17 0 10 0 2,106 0.001s 0.012s 18 0 8 0 523 0.001s 0.009s 19 0 6 0 388 0.001s 0.007s 20 0 6 0 373 0.001s 0.007s 21 0 7 0 357 0.001s 0.007s 22 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 16 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s Day Hour Mean distance Mean estimate Jul 16 07 11,041.11 kB 178,146.67 kB 08 11,075.85 kB 65,705.08 kB 09 12,751.18 kB 26,844.00 kB 10 13,326.31 kB 17,975.85 kB 11 11,012.27 kB 21,675.82 kB 12 13,175.85 kB 17,582.46 kB 13 41,790.91 kB 194,981.91 kB 14 10,302.77 kB 96,425.31 kB 15 13,624.73 kB 35,143.82 kB 16 15,226.17 kB 21,299.33 kB 17 13,265.33 kB 25,788.92 kB 18 14,269.00 kB 19,423.56 kB 19 14,556.43 kB 21,851.86 kB 20 14,998.00 kB 21,677.14 kB 21 15,420.14 kB 22,310.71 kB 22 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 622.15 MiB Temp Files size Peak
- 2026-07-16 10:51:28 Date
Number of temporary files
Key values
- 33 per second Temp Files Peak
- 2026-07-16 10:51:28 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 16 07 2 22.72 MiB 11.36 MiB 08 41 287.82 MiB 7.02 MiB 09 8 301.77 MiB 37.72 MiB 10 1,155 12.33 GiB 10.93 MiB 11 36 261.11 MiB 7.25 MiB 12 19 605.52 MiB 31.87 MiB 13 266 1.14 GiB 4.38 MiB 14 42 162.25 MiB 3.86 MiB 15 15 627.32 MiB 41.82 MiB 16 19 641.27 MiB 33.75 MiB 17 8 301.77 MiB 37.72 MiB 18 2 22.72 MiB 11.36 MiB 19 2 22.72 MiB 11.36 MiB 20 2 22.72 MiB 11.36 MiB 21 2 22.72 MiB 11.36 MiB 22 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 816 2.78 GiB 3.27 MiB 3.71 MiB 3.49 MiB select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id in (...);-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('DA6D5109E0794236A336DF4E401DDF51', 'AF26C99F1F5B4BDA9ADE33281C824310', 'A74D5584155C4F2ABB29197BEEAB6AEF', 'A0EA6676758A431D97D0EF94B42A67DF', '999BC0DA6F604831BCE836ACC899B166', '8194420624964FAC9C7553A635DC07AC', '7030BD9DBC1F4E9DB35DA9639DAE294A', '6BFB63A78EB74D33BCF96CA70B345A32', '4DA771C0639B4722ABB73776386246C7', '44283D5184804405B5322523206369DF', '2B3669E169F94F159126C4FD0783410C', '0DECD474EEE04C9288CCC2EF80CB9067', 'D77F3EC2F2FB4F0E8167AE5A720DA84B', 'CF4FE921173D4296A13612C39A226ABB', '974C3A378CBC492C8AC100C35B262D28', '92FB4AA6CF8C4016ABCF18B511F990E4', '902BE349A14C46C484FDE3AA4CA87FD1', '70E06199D44142D2AC0425EA5A0E4E25', '6D1A505D0A874F5B8EFD2CADD6542C78', '57CDF98D9C954D519E6902F8AE16AB0E', '40A7E834ED004BC0BC56E8EBC39E3F96', '3EB2D430287B4C578B13E33CD71028B4', '253A1863F8894B348BBC8235B3B7B4FD', 'D1BBB239C3BA4FCE80C09CA8F3AC90DC', 'CBCA234DA9B74D84B2165C1AD8183CBD', 'B203A5E9D8784D56807F6C07C968B979', 'AF9059E7C4F14AB0877DF403E828905D', '9D60729BADAE4DFEBB393723AA46A9B8', '907395AA40CD4274AECE7E26691CF41E', '2F08189EB11D4B95B70C015C9DD6077C', 'ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '5ABD202EBA7A425AA48CE424BB714D79', 'FAE634ADA07B4BA0A943FCBC71269F1C');
Date: 2026-07-16 13:53:29 Duration: 47s978ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('BBC8993C9B36449E95538F8BC635937D', 'BB1C633AA69344E3B614CE64E6E5A73F', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53', 'B5776043334E4F0B95A45E7E9ADB6CB3', 'B4DEB76EB3DE440AA03884C3AD5BC3A7', 'A613569C616B4400A67CF0D2E98E25B8', '9DE3E845BFFC4A90A3DB21B8ECA3AF83', '9CBAA873B64242F48DEE11BD7BDAB6A1', '7B96CE62188341F8A9F65807E5BDE3CD', '7AC5E7AF6F744819B5866D21F11E5D98', '6E1A004618DF48A08C11E6AB69C776DB', '5DE33BA2BB0C408EB2225A522952B93A', '5706ECDDBB9B4D41BF734341204461B2', '3F8FA22AA507446D87BFA9606F8072EF', '3B63B0F2F82246B2B7DE41D8091EC984', '2CAB937F19A44748B75691078B8720B9', '1226078C4C694576804583ACE24E3CD1', '0F80F36AD02C4185BB146A2523B3A431', '046E97912FB44F5787E61044CA75E783', 'FE8EFFA3F1724CE5A78E4532E8195A2C', 'F48F564D3EE54934A2E6A5D3555590CA', 'DCC1A05E11734188AD665D1C7F6A8B2C', 'CFB49E3F6DFA43988C9820CFCDF4D722', 'C2830A625C984F3FB65E946DF2779D5F', 'AB80C22BCAC74F56A98588F72B0BD6FA', '9D2FC4CF3D2D4DDC8DF9765E7605691D', '885134123AB646009C9FC6B8D5880267', '70BB8001548149C69D5197506CF16EFD', '567187AA7CAB449A886A6680521D3C52', '519ACB7BDE114495B0F2D46047F2782E', '45512BEB1434414FB421BB54F92A104E', '405EBE347D3E4391BE791C5A74742437', '3844AFF038554BBC86F7FD6A1225D528', '0304315403A44A4188FDF14E43C6261B', 'E6A5BF9EE2B3463B9F2ED43DD53F5F72', 'E68E7F26E6824330AD82619695DC47C4');
Date: 2026-07-16 10:52:07 Duration: 47s687ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('CEA9CD52250B4B29B846C042C96F2922', 'C73F04E916A542A6A7C6BC804ECAA073', 'A727D6966444476BA22F8B1311B551A3', '9E2ACDE62C4148E19F2FE87DCFAC03F8', '8D26BC165048413D88C1685253901CD6', '5E9BAB4472444E47A9E6EBA94854EFC3', '4D2AAFB1CFDE47549AC2FE79A4F9FB1A', 'D016BF162A0D44C89BB2E6990520C605', 'ACFDB325EB4F4DF8BF58378D22D9F44F', '937405A6B3724C9A83634E5506AD705A', '4491D6600BF14B59B3CD6CF7ABBD15DA', '2EDE7CF7A16A477E8410E2BAA1926C37', '22BC19172EF541DDA63167D80D768B04', 'EB82D8DBCF924F68A64FE58482C75215', '991C37144AC14AFCBF08A9EC3C82F3D3', '722FDF555D484CB5988814C95EB555B3', '62A7795968BB46E798B6E10EB46FAD1C', 'FDEFE41886A84F968C0EADEED98AD68A', 'DF3FAA6669134BE583F1B43CE2FCD4EE', 'DB96D645ED944C42922CACB8EA52035B', 'C3C80C6B41E44E57995481EE244760BE', 'BA08B5F7E11646858B2F33220E9B9185', 'AD0AA61E1DC245A599E0F4DF70DB8383', '932529E707E34CB4A3ACF355958E7D64', '9099F11C2EE14F519D6DCA39EE22C9C5', '8BAA962A033249688B9F67D4C6DE2576', '5608C842F1734D239A116534E2882093', '32105F26116F4B27AE11F14975663678', '2C5ACB9469B3491FB15AB1C8A35A3EE9', '1927365C95C7490DA32C4CDF2EB75C0C', 'FB82FC2562A940338FD986F8F0269025', '75D9B11D98FF4665BB603C010156228A', '3BC6405AA4E44A549C9ACE2FDDF91C63', 'D75BD6F5F66B44A5990103A873EAD7D8', 'B61FB40211F548B0AA9D0C4AAF09C554', 'A99C8AEEE2C943FBA55966D4C5E31CB8', '9366F4352F624DEB9C23C52FCB18D321', '83106130B1D3435387E43EF91FC7B5A2', '25AB778E4A0F443981A3F6F4546E75F4', '1406F359228A43E39D0A769EC593546F', 'FA61AF6FAAD44AB5A6D03C15D4E3FA9C', 'D674DE7912FB4C18B9E970DDF4247484', 'B633C5444578453888DE901687603DAB', '34163C4142ED4F2CBDF60FF1CDACE2D6', '1E461566C8C748719C8E4DC8592F7698', '1BDBD8AA6E5D40178C7DCF53AA759250', '194F1E050D33409D9EA355391AAD2E01', '9073B8C50C8042F59C68214375FF34F7', '7A6F82E9F9E1442A8C0B1F993EA3F25F', '5CA665CBF27249A7AC2BB3B134D5F308');
Date: 2026-07-16 10:36:29 Duration: 47s673ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 214 746.49 MiB 3.27 MiB 3.71 MiB 3.49 MiB select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id = ?;-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = '6BFB63A78EB74D33BCF96CA70B345A32';
Date: 2026-07-16 13:48:18 Duration: 2s315ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = 'A0EA6676758A431D97D0EF94B42A67DF';
Date: 2026-07-16 08:06:53 Duration: 1s517ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = '7030BD9DBC1F4E9DB35DA9639DAE294A';
Date: 2026-07-16 10:50:16 Duration: 1s67ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
3 112 2.26 GiB 12.91 MiB 45.04 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/379%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:54 Duration: 2s156ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', '46B3AAC3A06B4ED793016C4E5C54E704', '7037B0EC9AA9481E92BB79013794D122', '9548EA89B074486593E4DB6ACF8C1F7C', 'D154E2095B75489AA5779DB1C1B1EA53', 'E425E7CD846B4FDF9E6488B94D9EF109', 'F3CF3A9446AF497EBF31A19599BA946F') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%C3580%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%46B3AAC3A06B4ED793016C4E5C54E704%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%7037B0EC9AA9481E92BB79013794D122%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%9548EA89B074486593E4DB6ACF8C1F7C%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D154E2095B75489AA5779DB1C1B1EA53%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E425E7CD846B4FDF9E6488B94D9EF109%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F3CF3A9446AF497EBF31A19599BA946F%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:57 Duration: 2s128ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', '46B3AAC3A06B4ED793016C4E5C54E704', '7037B0EC9AA9481E92BB79013794D122', '9548EA89B074486593E4DB6ACF8C1F7C', 'D154E2095B75489AA5779DB1C1B1EA53', 'E425E7CD846B4FDF9E6488B94D9EF109', 'F3CF3A9446AF497EBF31A19599BA946F') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%C26/3580%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%46B3AAC3A06B4ED793016C4E5C54E704%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%7037B0EC9AA9481E92BB79013794D122%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%9548EA89B074486593E4DB6ACF8C1F7C%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D154E2095B75489AA5779DB1C1B1EA53%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E425E7CD846B4FDF9E6488B94D9EF109%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F3CF3A9446AF497EBF31A19599BA946F%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:59 Duration: 2s123ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
4 80 1.61 GiB 12.91 MiB 45.04 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ? offset ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '400';
Date: 2026-07-16 10:48:42 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-16 10:48:35 Duration: 1s999ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '500';
Date: 2026-07-16 10:48:45 Duration: 1s954ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 48 990.32 MiB 12.91 MiB 45.04 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3586%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:29 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/35%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:28 Duration: 2s110ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/358%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:29 Duration: 2s80ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
6 45 2.04 GiB 46.51 MiB 46.51 MiB 46.51 MiB select * from c_order_post (?);-
SELECT * FROM C_ORDER_POST ('442A0684520141A3AA7A35EE385DA068');
Date: 2026-07-16 15:16:12 Duration: 10s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM C_ORDER_POST ('C02B844084634A12A689B79627C69E2D');
Date: 2026-07-16 16:19:00 Duration: 9s165ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM C_ORDER_POST ('80115F4A83664475BACBA04ECE41359A');
Date: 2026-07-16 15:56:49 Duration: 7s534ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
7 32 659.59 MiB 12.91 MiB 45.04 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%358%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:46 Duration: 2s32ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%3580%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:47 Duration: 1s929ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11 group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($12) escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $13;
Date: 2026-07-16 10:48:45 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
8 32 660.21 MiB 12.91 MiB 45.04 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3794%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:25 Duration: 2s86ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/379%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:24 Duration: 1s981ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($13) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $14;
Date: 2026-07-16 10:49:23 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
9 32 660.21 MiB 12.91 MiB 45.04 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3581%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:43 Duration: 2s84ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/358%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:42 Duration: 2s67ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($14) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $15;
Date: 2026-07-16 10:49:41 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
10 32 660.21 MiB 12.91 MiB 45.04 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/358%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:55 Duration: 2s124ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3584%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:56 Duration: 2s124ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($15) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $16;
Date: 2026-07-16 10:49:54 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
11 32 660.21 MiB 12.91 MiB 45.04 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/359%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:36 Duration: 2s118ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3592%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:38 Duration: 2s75ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($17) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($18) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $19;
Date: 2026-07-16 10:50:35 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
12 16 330.11 MiB 12.91 MiB 45.04 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3790%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:08 Duration: 2s68ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($16) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $17;
Date: 2026-07-16 10:50:07 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
13 16 329.80 MiB 12.91 MiB 45.04 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:32 Duration: 2s132ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.AD_Org_ID in ($6, $7, $8, $9)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $10) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($11, $12, $13)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = $14 and invoice7_.C_Currency_ID = $15 group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $16;
Date: 2026-07-16 10:48:31 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
14 16 330.11 MiB 12.91 MiB 45.04 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3793%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:12 Duration: 2s135ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($17) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($18) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($19) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($20) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $21;
Date: 2026-07-16 10:51:11 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
15 16 329.80 MiB 12.91 MiB 45.04 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(coalesce(fin_paymen9_.name, fin_paymen5_.name)) like upper(?) escape ? order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper('%Tarjeta%de%Crédito%') escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:01 Duration: 2s302ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11 group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper($12) escape '|' order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $13;
Date: 2026-07-16 10:48:00 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
16 16 330.11 MiB 12.91 MiB 45.04 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3791%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:23 Duration: 2s191ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($17) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $18;
Date: 2026-07-16 10:50:22 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
17 15 181.75 MiB 11.36 MiB 22.72 MiB 12.12 MiB update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select prod.upc as referencekey_id, ad_column_identifier (?, prod.upc, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || prod.upc as description, ? as isactive, prod.ad_org_id, prod.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_product prod where prod.upc is not null and prod.upc <> ? group by prod.upc, prod.ad_org_id, prod.ad_client_id having count(*) > ?) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = $1 AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select prod.upc AS referencekey_id, ad_column_identifier ('m_proudct', prod.upc, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'UPC duplicado: ' || prod.upc AS description, 'Y' AS isActive, prod.ad_org_id, prod.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product prod where prod.upc is not null and prod.upc <> '' group by prod.upc, prod.ad_org_id, prod.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-16 07:00:04 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
18 14 651.11 MiB 46.51 MiB 46.51 MiB 46.51 MiB select * from m_inout_post0 (?);-
SELECT * FROM M_InOut_Post0 ('EFC0907C15CC42EC9CC31DF915FCB47A');
Date: 2026-07-16 10:53:57 Duration: 7s230ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM M_InOut_Post0 ('9325007680064BD48B8D81C2A641BB3F');
Date: 2026-07-16 12:47:23 Duration: 7s188ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM M_InOut_Post0 ('37FB150F17C44DD0942516764B596BBE');
Date: 2026-07-16 15:35:24 Duration: 7s177ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
19 11 130.84 MiB 11.80 MiB 11.94 MiB 11.89 MiB select coalesce(sum(s.amtacctdr), ?) as amtacctdr, coalesce(sum(s.amtacctcr), ?) as amtacctcr from ( select * from ( select ? as rn1, c.* from ( select value, name, dateacct, coalesce(sum(amtacctdr), ?) as amtacctdr, coalesce(sum(amtacctcr), ?) as amtacctcr, coalesce(sum(amtacctdr - amtacctcr), ?) as total, max(fact_acct_id) as fact_acct_id, fact_acct_group_id, id, groupbyid, groupbyname, description, isdebit, ? as totalacctdr, ? as totalacctcr, ? as totalacctsub, ? as previousdebit, ? as previouscredit, ? as previoustotal, ? as finaldebit, ? as finalcredit, ? as finaltotal, to_char(dateacct, ?) as dateacctnumber, ? as groupby, ? as bpid, ? as bpname, ? as pdid, ? as pdname, ? as pjid, ? as pjname, factaccttype, ? as amtacctdrprevsum, ? as amtacctcrprevsum from ( select fact_acct.acctvalue as value, fact_acct.acctdescription as name, dateacct, amtacctdr, amtacctcr, fact_acct_id, fact_acct_group_id, fact_acct.account_id as id, fact_acct.description, case ? when ? then c_bpartner.c_bpartner_id when ? then m_product.m_product_id when ? then c_project.c_project_id else ? end as groupbyid, case ? when ? then ( select to_char(name) from c_bpartner b where b.c_bpartner_id = c_bpartner.c_bpartner_id) when ? then ( select to_char(value || ? || name) from m_product p where p.m_product_id = m_product.m_product_id) when ? then ( select to_char(name) from c_project pj where pj.c_project_id = c_project.c_project_id) else ? end as groupbyname, case when (amtacctdr > ? and amtacctcr = ?) or (amtacctcr < ? and amtacctdr = ?) then ? else ? end as isdebit, case when fact_acct.factaccttype = ? then ? else ( case when fact_acct.factaccttype = ? then ? else ( case when fact_acct.factaccttype = ? then ? else ( case when fact_acct.factaccttype = ? then ? end) end) end) end as factaccttype from fact_acct left join c_bpartner on fact_acct.c_bpartner_id = c_bpartner.c_bpartner_id left join m_product on fact_acct.m_product_id = m_product.m_product_id left join c_project on fact_acct.c_project_id = c_project.c_project_id where (? = ? or fact_acct.account_id in ( select c_elementvalue_id as name from c_elementvalue where value >= ( select value from c_elementvalue where c_elementvalue_id = ?) and value <= ( select value from c_elementvalue where c_elementvalue_id = ?) and c_elementvalue.elementlevel = ?)) and fact_acct.ad_org_id in (...) and fact_acct.ad_client_id in (...) and ? = ? and fact_acct.c_acctschema_id = ? and fact_acct.dateacct >= to_date(?) and fact_acct.dateacct < to_date(?) and fact_acct.ad_org_id in (...) and ? = ? and ? = ?) d where ? = ? group by groupbyname, groupbyid, value, name, id, dateacct, factaccttype, fact_acct_group_id, description, isdebit having sum(amtacctdr) - sum(amtacctcr) <> ? order by groupbyname, groupbyid, value, name, id, dateacct, factaccttype, fact_acct_group_id, fact_acct_id, description, isdebit) c) b where ? = ? and to_char(dateacct, ?) || factaccttype || fact_acct_group_id || fact_acct_id < ?) s where s.id = ?;-
SELECT Coalesce(SUM(S.amtacctdr), 0) AS AMTACCTDR, Coalesce(SUM(S.amtacctcr), 0) AS AMTACCTCR FROM ( SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR - AMTACCTCR), 0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT, 'J') AS DATEACCTNUMBER, $1 AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype, 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM ( SELECT FACT_ACCT.ACCTVALUE AS VALUE, FACT_ACCT.ACCTDESCRIPTION AS NAME, DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, CASE $2 WHEN 'BPartner' THEN c_bpartner.c_bpartner_id WHEN 'Product' THEN m_product.m_product_id WHEN 'Project' THEN c_project.c_project_id ELSE '' END AS groupbyid, CASE $3 WHEN 'BPartner' THEN ( select to_char(name) from c_bpartner b where b.c_bpartner_id = c_bpartner.c_bpartner_id) WHEN 'Product' THEN ( select to_char(value || ' - ' || name) from m_product p where p.m_product_id = m_product.m_product_id) WHEN 'Project' THEN ( select to_char(name) from c_project pj where pj.c_project_id = c_project.c_project_id) ELSE '' END AS groupbyname, CASE WHEN (AMTACCTDR > 0 AND AMTACCTCR = 0) OR (AMTACCTCR < 0 AND AMTACCTDR = 0) THEN 'Y' ELSE 'N' END AS ISDEBIT, CASE WHEN FACT_ACCT.FACTACCTTYPE = 'O' THEN 1 ELSE ( CASE WHEN FACT_ACCT.FACTACCTTYPE = 'N' THEN 2 ELSE ( CASE WHEN FACT_ACCT.FACTACCTTYPE = 'R' THEN 3 ELSE ( CASE WHEN FACT_ACCT.FACTACCTTYPE = 'C' THEN 4 END) END) END) END AS FACTACCTTYPE FROM FACT_ACCT LEFT JOIN C_BPARTNER ON FACT_ACCT.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID LEFT JOIN M_PRODUCT ON FACT_ACCT.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID LEFT JOIN C_PROJECT ON FACT_ACCT.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID WHERE ($4 = 'Y' OR FACT_ACCT.ACCOUNT_ID IN ( SELECT c_elementvalue_id as name FROM C_ELEMENTVALUE WHERE value >= ( select value from c_elementvalue where c_elementvalue_id = $5) and value <= ( select value from c_elementvalue where c_elementvalue_id = $6) and c_elementvalue.ELEMENTLEVEL = 'S')) AND FACT_ACCT.AD_ORG_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND FACT_ACCT.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND FACT_ACCT.C_ACCTSCHEMA_ID = $7 AND FACT_ACCT.DATEACCT >= TO_DATE($8) AND FACT_ACCT.DATEACCT < TO_DATE($9) AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT) C) B WHERE 1 = 1 and to_char(DATEACCT, 'J') || FACTACCTTYPE || FACT_ACCT_GROUP_ID || FACT_ACCT_ID < $10) S WHERE S.id = $11;
Date: 2026-07-16 10:43:28 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
20 9 102.23 MiB 11.36 MiB 11.36 MiB 11.36 MiB select * from ( select ;-
SELECT * FROM ( select ;
Date: 2026-07-16 08:00:03 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
21 4 45.44 MiB 11.36 MiB 11.36 MiB 11.36 MiB select * from ( select distinct ad_column_identifier (?, fin_payment_schedule.c_invoice_id, ?) as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = ? group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, ?)) order by ?) 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, ?) != ?);-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 16:00:05 Duration: 3s493ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 14:00:03 Duration: 1s214ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 15:00:02 Duration: 1s168ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
22 3 139.52 MiB 46.51 MiB 46.51 MiB 46.51 MiB select c_order_post1 (?, ?, ?) as result from dual;-
SELECT c_order_post1 ($1, $2, $3) AS RESULT FROM DUAL;
Date: 2026-07-16 08:16:56 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
23 1 61.12 MiB 61.12 MiB 61.12 MiB 61.12 MiB select * from ( select ? as rn1, b.* from ( select schema_id, schema_name, identifier, dateacct, aa.value, coalesce(trl_name, aa.name) as name, id, ad_table_id, docbasetype, ar.name as docname, seqno, ? as total, description, ( case factaccttype when ? then ? when ? then ? when ? then ? when ? then ? else ? end) as factaccttype2, ( case amtacctdr when ? then null else amtacctdr end) as amtacctdr, ( case amtacctcr when ? then null else amtacctcr end) as amtacctcr, ? as groupedlines, ? as taxid, ad_gettab_from_table (aa.ad_table_id, aa.docbasetype, aa.ad_client_id) as tab_id, ? as newstyle, aa.journalbatch_id as journalbatch_id from ( select ev_trl.name as trl_name, f.c_acctschema_id as schema_id, sc.name as schema_name, f.fact_acct_group_id as identifier, f.dateacct, f.acctvalue as value, f.acctdescription as name, case when ? = ? then to_char(f.description) else to_char(?) end as description, f.record_id as id, f.ad_table_id, f.docbasetype, sum(f.amtacctdr) as amtacctdr, sum(f.amtacctcr) as amtacctcr, min(seqno) as seqno, f.factaccttype as factaccttype, f.ad_client_id, max(glj.gl_journalbatch_id) as journalbatch_id from fact_acct f join c_acctschema sc on (f.c_acctschema_id = sc.c_acctschema_id) left join gl_journal glj on (glj.gl_journal_id = f.record_id and f.ad_table_id = ?) left join c_elementvalue ev on (f.acctdescription = ev.name and f.acctvalue = ev.value and f.ad_client_id = ev.ad_client_id and f.c_acctschema_id = ev.c_element_id) left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? where f.ad_client_id in (...) and f.ad_org_id in (...) and ? = ? and f.dateacct >= to_date(?) and f.dateacct < to_date(?) and f.c_acctschema_id = ? and f.ad_org_id in (...) and f.factaccttype in (...) and f.c_acctschema_id = sc.c_acctschema_id and (? = ? or f.fact_acct_group_id in ( select fact_acct_group_id from fact_acct where account_id in ( select c_elementvalue_id as name from c_elementvalue where value >= ( select value from c_elementvalue where c_elementvalue_id = ?) and value <= ( select value from c_elementvalue where c_elementvalue_id = ?) and c_elementvalue.elementlevel = ?) and ad_client_id in (...) and ad_org_id in (...) and ? = ? and dateacct >= to_date(?) and dateacct < to_date(?) and c_acctschema_id = ? and ad_org_id in (...) and factaccttype in (...))) group by ev_trl.name, f.c_acctschema_id, sc.name, f.ad_table_id, f.dateacct, f.acctdescription, case when ? = ? then to_char(f.description) else to_char(?) end, f.acctvalue, f.docbasetype, f.record_id, f.fact_acct_group_id, f.account_id, f.factaccttype, ( case f.amtacctdr when ? then ( case sign(f.amtacctcr) when ? then ? else ? end) else ( case sign(f.amtacctdr) when ? then ? else ? end) end), f.ad_client_id having (sum(f.amtacctdr) <> ? or sum(f.amtacctcr) <> ?)) aa left join ( select * from ad_ref_list_v where ad_reference_id = ? and ad_language = ?) ar on ar.value = aa.docbasetype order by schema_name, dateacct, factaccttype2, identifier, aa.amtacctdr desc, aa.amtacctcr desc, seqno) b limit ? offset ?) c where ? = ?;-
SELECT * FROM ( SELECT 0 AS RN1, B.* FROM ( SELECT SCHEMA_ID, SCHEMA_NAME, IDENTIFIER, DATEACCT, AA.VALUE, COALESCE(TRL_NAME, AA.NAME) AS NAME, ID, AD_TABLE_ID, DOCBASETYPE, AR.NAME as DOCNAME, SEQNO, '' AS TOTAL, DESCRIPTION, (CASE FACTACCTTYPE WHEN 'O' THEN 1 WHEN 'N' THEN 2 WHEN 'R' THEN 3 WHEN 'D' THEN 4 ELSE 5 END) AS FACTACCTTYPE2, (CASE AMTACCTDR WHEN 0 THEN NULL ELSE AMTACCTDR END) AS AMTACCTDR, (CASE AMTACCTCR WHEN 0 THEN NULL ELSE AMTACCTCR END) AS AMTACCTCR, '' AS GROUPEDLINES, '' AS TAXID, AD_GETTAB_FROM_TABLE(AA.AD_TABLE_ID, AA.DOCBASETYPE, AA.AD_CLIENT_ID) AS TAB_ID, '' as newStyle, AA.journalbatch_id AS journalbatch_id FROM ( SELECT ev_trl.NAME AS TRL_NAME, F.C_ACCTSCHEMA_ID AS SCHEMA_ID, SC.NAME AS SCHEMA_NAME, F.FACT_ACCT_GROUP_ID AS IDENTIFIER, F.DATEACCT, F.ACCTVALUE AS VALUE, F.ACCTDESCRIPTION AS NAME, CASE WHEN 'N' = 'Y' THEN TO_CHAR(F.DESCRIPTION) ELSE TO_CHAR('') END AS DESCRIPTION, F.RECORD_ID AS ID, F.AD_TABLE_ID, F.DOCBASETYPE, sum(F.AMTACCTDR) AS AMTACCTDR, sum(F.AMTACCTCR) AS AMTACCTCR, MIN(SEQNO) AS SEQNO, F.FACTACCTTYPE AS FACTACCTTYPE, F.AD_CLIENT_ID, MAX(glj.gl_journalbatch_id) as journalbatch_id FROM FACT_ACCT F JOIN C_ACCTSCHEMA SC ON (F.C_ACCTSCHEMA_ID = SC.C_ACCTSCHEMA_ID) LEFT JOIN GL_JOURNAL GLJ ON (GLJ.GL_JOURNAL_ID = F.RECORD_ID AND F.AD_TABLE_ID = '224') LEFT JOIN c_elementvalue ev ON (F.ACCTDESCRIPTION = ev.name and F.ACCTvalue = ev.value and F.AD_CLIENT_ID=ev.AD_CLIENT_ID and F.C_ACCTSCHEMA_ID = ev.c_element_id) LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE F.AD_CLIENT_ID IN ('0','FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN('0','FF80818134D2AA330134F1D03034277D','FF80818134D2AA330134F1D11B372783','FF80818133B7413E0133B71974AD28C6','96BD3AC81C95427788B46A17146F4F7B') AND 1=1 AND f.dateacct >= TO_DATE('01-01-2025') AND f.dateacct < TO_DATE('01-01-2026') AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.AD_ORG_ID IN('FF80818134D2AA330134F1D11B372783','FF80818134D2AA330134F1D03034277D','FF80818133B7413E0133B71974AD28C6') AND F.FactAcctType IN ('C', 'R', 'O', 'N', 'D') AND f.C_ACCTSCHEMA_ID = SC.C_ACCTSCHEMA_ID AND ('Y'='Y' OR F.FACT_ACCT_GROUP_ID IN ( SELECT FACT_ACCT_GROUP_ID FROM FACT_ACCT WHERE ACCOUNT_ID IN ( SELECT c_elementvalue_id as name FROM C_ELEMENTVALUE WHERE value >= ( select value from c_elementvalue where c_elementvalue_id = NULL) and value <= ( select value from c_elementvalue where c_elementvalue_id = NULL) and c_elementvalue.ELEMENTLEVEL = 'S') AND AD_CLIENT_ID IN ('0','FF80818133B7413E0133B7164D6A0002') AND AD_ORG_ID IN ('0','FF80818134D2AA330134F1D03034277D','FF80818134D2AA330134F1D11B372783','FF80818133B7413E0133B71974AD28C6','96BD3AC81C95427788B46A17146F4F7B') AND 3=3 AND dateacct >= TO_DATE('01-01-2025') AND dateacct < TO_DATE('01-01-2026') AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND AD_ORG_ID IN('FF80818134D2AA330134F1D11B372783','FF80818134D2AA330134F1D03034277D','FF80818133B7413E0133B71974AD28C6') AND FactAcctType IN ('C', 'R', 'O', 'N', 'D') )) GROUP BY ev_trl.NAME, f.C_ACCTSCHEMA_ID, SC.NAME, F.AD_TABLE_ID, F.DATEACCT, F.ACCTDESCRIPTION, CASE WHEN 'N' = 'Y' THEN TO_CHAR(F.DESCRIPTION) ELSE TO_CHAR('') END, F.ACCTVALUE, F.DOCBASETYPE, F.RECORD_ID, F.FACT_ACCT_GROUP_ID, F.ACCOUNT_ID, F.FACTACCTTYPE, ( CASE F.AMTACCTDR WHEN 0 THEN ( CASE SIGN(F.AMTACCTCR) WHEN -1 THEN 1 ELSE 2 END) ELSE ( CASE SIGN(F.AMTACCTDR) WHEN -1 THEN 3 ELSE 4 END) END), F.AD_CLIENT_ID HAVING (sum(F.AMTACCTDR) <> 0 OR sum(F.AMTACCTCR) <> 0)) AA LEFT JOIN ( select * from AD_REF_LIST_V WHERE AD_REFERENCE_ID = '183' AND AD_LANGUAGE = 'es_ES') AR ON AR.VALUE = AA.DOCBASETYPE ORDER BY SCHEMA_NAME, DATEACCT, FACTACCTTYPE2, IDENTIFIER, AA.AMTACCTDR DESC, AA.AMTACCTCR DESC, SEQNO) B LIMIT 67 OFFSET 0) C WHERE 1 = 1;
Date: 2026-07-16 13:18:02 Duration: 1s335ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
24 1 31.13 MiB 31.13 MiB 31.13 MiB 31.13 MiB select to_date(?) + to_number(?) as fecha from dual;-
SELECT TO_DATE($1) + to_number($2) as fecha FROM DUAL;
Date: 2026-07-16 13:18:06 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
25 1 50.65 MiB 50.65 MiB 50.65 MiB 50.65 MiB select * from ( select ? as rn1, g.* from ( select count(*) as groupedlines, identifier, schema_name, dateacct from ( select schema_id, schema_name, identifier, dateacct, value, name, id, ad_table_id, docbasetype, seqno, ? as total, ? as description, ( case amtacctdr when ? then null else amtacctdr end) as amtacctdr, ( case amtacctcr when ? then null else amtacctcr end) as amtacctcr from ( select f.c_acctschema_id as schema_id, sc.name as schema_name, f.fact_acct_group_id as identifier, f.dateacct, f.acctvalue as value, f.acctdescription as name, f.record_id as id, f.ad_table_id, f.docbasetype, sum(f.amtacctdr) as amtacctdr, sum(f.amtacctcr) as amtacctcr, min(seqno) as seqno from fact_acct f, c_acctschema sc where f.ad_client_id in (...) and f.ad_org_id in (...) and ? = ? and f.dateacct >= to_date(?) and f.dateacct < to_date(?) and f.c_acctschema_id = ? and f.ad_org_id in (...) and f.factaccttype in (...) and f.c_acctschema_id = sc.c_acctschema_id and (? = ? or f.fact_acct_group_id in ( select fact_acct_group_id from fact_acct where account_id in ( select c_elementvalue_id as name from c_elementvalue where value >= ( select value from c_elementvalue where c_elementvalue_id = ?) and value <= ( select value from c_elementvalue where c_elementvalue_id = ?) and c_elementvalue.elementlevel = ?) and ad_client_id in (...) and ad_org_id in (...) and ? = ? and dateacct >= to_date(?) and dateacct < to_date(?) and c_acctschema_id = ? and ad_org_id in (...) and factaccttype in (...))) group by f.c_acctschema_id, sc.name, f.ad_table_id, f.dateacct, f.acctdescription, f.acctvalue, f.docbasetype, f.record_id, f.fact_acct_group_id, f.account_id, ( case f.amtacctdr when ? then ( case sign(f.amtacctcr) when ? then ? else ? end) else ( case sign(f.amtacctdr) when ? then ? else ? end) end)) aa order by schema_name, dateacct, identifier, seqno) bb group by identifier, schema_name, dateacct order by schema_name, dateacct, identifier) g) h where ? = ?;-
SELECT * FROM ( SELECT 0 AS RN1, G.* FROM ( SELECT COUNT(*) AS GROUPEDLINES, IDENTIFIER, SCHEMA_NAME, DATEACCT FROM ( SELECT SCHEMA_ID, SCHEMA_NAME, IDENTIFIER, DATEACCT, VALUE, NAME, ID, AD_TABLE_ID, DOCBASETYPE, SEQNO, '' AS TOTAL, '' AS DESCRIPTION, ( CASE AMTACCTDR WHEN 0 THEN NULL ELSE AMTACCTDR END) AS AMTACCTDR, ( CASE AMTACCTCR WHEN 0 THEN NULL ELSE AMTACCTCR END) AS AMTACCTCR FROM ( SELECT F.C_ACCTSCHEMA_ID AS SCHEMA_ID, SC.NAME AS SCHEMA_NAME, F.FACT_ACCT_GROUP_ID AS IDENTIFIER, F.DATEACCT, F.ACCTVALUE AS VALUE, F.ACCTDESCRIPTION AS NAME, F.RECORD_ID AS ID, F.AD_TABLE_ID, F.DOCBASETYPE, sum(F.AMTACCTDR) AS AMTACCTDR, sum(F.AMTACCTCR) AS AMTACCTCR, MIN(SEQNO) AS SEQNO FROM FACT_ACCT F, C_ACCTSCHEMA SC WHERE F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND 1 = 1 AND f.dateacct >= TO_DATE('01-01-2025') AND f.dateacct < TO_DATE('01-01-2026') AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.FactAcctType IN ('C', 'R', 'O', 'N', 'D') AND f.C_ACCTSCHEMA_ID = SC.C_ACCTSCHEMA_ID AND ('Y' = 'Y' OR F.FACT_ACCT_GROUP_ID IN ( SELECT FACT_ACCT_GROUP_ID FROM FACT_ACCT WHERE ACCOUNT_ID IN ( SELECT c_elementvalue_id as name FROM C_ELEMENTVALUE WHERE value >= ( select value from c_elementvalue where c_elementvalue_id = NULL) and value <= ( select value from c_elementvalue where c_elementvalue_id = NULL) and c_elementvalue.ELEMENTLEVEL = 'S') AND AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND AD_ORG_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND 3 = 3 AND dateacct >= TO_DATE('01-01-2025') AND dateacct < TO_DATE('01-01-2026') AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND FactAcctType IN ('C', 'R', 'O', 'N', 'D'))) GROUP BY f.C_ACCTSCHEMA_ID, SC.NAME, F.AD_TABLE_ID, F.DATEACCT, F.ACCTDESCRIPTION, F.ACCTVALUE, F.DOCBASETYPE, F.RECORD_ID, F.FACT_ACCT_GROUP_ID, F.ACCOUNT_ID, ( CASE F.AMTACCTDR WHEN 0 THEN ( CASE SIGN(F.AMTACCTCR) WHEN -1 THEN 1 ELSE 2 END) ELSE ( CASE SIGN(F.AMTACCTDR) WHEN -1 THEN 3 ELSE 4 END) END)) AA ORDER BY SCHEMA_NAME, DATEACCT, IDENTIFIER, SEQNO) BB GROUP BY IDENTIFIER, SCHEMA_NAME, DATEACCT ORDER BY SCHEMA_NAME, DATEACCT, IDENTIFIER) G) H WHERE 1 = 1;
Date: 2026-07-16 13:18:01 Duration: 1s105ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
26 1 16.69 MiB 16.69 MiB 16.69 MiB 16.69 MiB insert into fact_acct (fact_acct_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_acctschema_id, account_id, datetrx, dateacct, c_period_id, ad_table_id, record_id, postingtype, c_currency_id, amtsourcecr, amtsourcedr, amtacctcr, amtacctdr, fact_acct_group_id, seqno, factaccttype, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, description, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id) select get_uuid (), ?, ?, ?, now(), ?, now(), ?, c_acctschema_id, account_id, to_date(?), to_date(?), ?, ?, ?, ?, ?, ( case sign(sum(amtacctcr) - sum(amtacctdr)) when ? then ? else (sum(amtacctcr) - sum(amtacctdr)) end), ( case sign(sum(amtacctdr) - sum(amtacctcr)) when ? then ? else (sum(amtacctdr) - sum(amtacctcr)) end), ( case sign(sum(amtacctcr) - sum(amtacctdr)) when ? then ? else (sum(amtacctcr) - sum(amtacctdr)) end), ( case sign(sum(amtacctdr) - sum(amtacctcr)) when ? then ? else (sum(amtacctdr) - sum(amtacctcr)) end), ?, to_number(?), ?, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, ?, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id from fact_acct where exists ( select ? from c_period p where p.c_year_id = ? and p.c_period_id = fact_acct.c_period_id) and exists ( select ? from c_elementvalue where c_elementvalue.accounttype in (...) and account_id = c_elementvalue_id) and ad_org_id = ? and c_acctschema_id = ? and (factaccttype <> ? or fact_acct_group_id = ?) group by account_id, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id, c_acctschema_id having sum(amtacctdr) - sum(amtacctcr) <> ? order by acctvalue;-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCECR, AMTSOURCEDR, AMTACCTCR, AMTACCTDR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), 'FF80818133B7413E0133B7164D6A0002', 'FF80818133B7413E0133B71974AD28C6', 'Y', now(), 'AB6C0034255E4370A86E2E985B7BD43D', now(), 'AB6C0034255E4370A86E2E985B7BD43D', C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date('01-01-2026'), to_date('01-01-2026'), '77715D3A1FCB41ED992106DD6C87775C', '145', '77715D3A1FCB41ED992106DD6C87775C', 'A', '102', ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), 'DD106B1665C04887982B9225B011DACD', to_number('20'), 'O', ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, 'Entrada de apertura', C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = '6E291C21988F4D90AC2C4FD9E7DDE383' AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('A', 'L', 'O') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = 'FF80818133B7413E0133B71974AD28C6' AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = NULL) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:38 Duration: 3s808ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCECR, AMTSOURCEDR, AMTACCTCR, AMTACCTDR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), $1, $2, 'Y', now(), $3, now(), $4, C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date($5), to_date($6), $7, '145', $8, 'A', $9, ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), $10, to_number($11), $12, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, $13, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = $14 AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('A', 'L', 'O') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = $15 AND C_ACCTSCHEMA_ID = $16 AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = $17) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:38 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
27 1 11.36 MiB 11.36 MiB 11.36 MiB 11.36 MiB update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select ;-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = $1 AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select ;
Date: 2026-07-16 13:00:04 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 61.12 MiB SELECT * FROM ( SELECT 0 AS RN1, B.* FROM ( SELECT SCHEMA_ID, SCHEMA_NAME, IDENTIFIER, DATEACCT, AA.VALUE, COALESCE(TRL_NAME, AA.NAME) AS NAME, ID, AD_TABLE_ID, DOCBASETYPE, AR.NAME as DOCNAME, SEQNO, '' AS TOTAL, DESCRIPTION, (CASE FACTACCTTYPE WHEN 'O' THEN 1 WHEN 'N' THEN 2 WHEN 'R' THEN 3 WHEN 'D' THEN 4 ELSE 5 END) AS FACTACCTTYPE2, (CASE AMTACCTDR WHEN 0 THEN NULL ELSE AMTACCTDR END) AS AMTACCTDR, (CASE AMTACCTCR WHEN 0 THEN NULL ELSE AMTACCTCR END) AS AMTACCTCR, '' AS GROUPEDLINES, '' AS TAXID, AD_GETTAB_FROM_TABLE(AA.AD_TABLE_ID, AA.DOCBASETYPE, AA.AD_CLIENT_ID) AS TAB_ID, '' as newStyle, AA.journalbatch_id AS journalbatch_id FROM ( SELECT ev_trl.NAME AS TRL_NAME, F.C_ACCTSCHEMA_ID AS SCHEMA_ID, SC.NAME AS SCHEMA_NAME, F.FACT_ACCT_GROUP_ID AS IDENTIFIER, F.DATEACCT, F.ACCTVALUE AS VALUE, F.ACCTDESCRIPTION AS NAME, CASE WHEN 'N' = 'Y' THEN TO_CHAR(F.DESCRIPTION) ELSE TO_CHAR('') END AS DESCRIPTION, F.RECORD_ID AS ID, F.AD_TABLE_ID, F.DOCBASETYPE, sum(F.AMTACCTDR) AS AMTACCTDR, sum(F.AMTACCTCR) AS AMTACCTCR, MIN(SEQNO) AS SEQNO, F.FACTACCTTYPE AS FACTACCTTYPE, F.AD_CLIENT_ID, MAX(glj.gl_journalbatch_id) as journalbatch_id FROM FACT_ACCT F JOIN C_ACCTSCHEMA SC ON (F.C_ACCTSCHEMA_ID = SC.C_ACCTSCHEMA_ID) LEFT JOIN GL_JOURNAL GLJ ON (GLJ.GL_JOURNAL_ID = F.RECORD_ID AND F.AD_TABLE_ID = '224') LEFT JOIN c_elementvalue ev ON (F.ACCTDESCRIPTION = ev.name and F.ACCTvalue = ev.value and F.AD_CLIENT_ID=ev.AD_CLIENT_ID and F.C_ACCTSCHEMA_ID = ev.c_element_id) LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = $1 WHERE F.AD_CLIENT_ID IN ('0','FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN('0','FF80818134D2AA330134F1D03034277D','FF80818134D2AA330134F1D11B372783','FF80818133B7413E0133B71974AD28C6','96BD3AC81C95427788B46A17146F4F7B') AND 1=1 AND f.dateacct >= TO_DATE($2) AND f.dateacct < TO_DATE($3) AND f.C_ACCTSCHEMA_ID = $4 AND f.AD_ORG_ID IN('FF80818134D2AA330134F1D11B372783','FF80818134D2AA330134F1D03034277D','FF80818133B7413E0133B71974AD28C6') AND F.FactAcctType IN ('C', 'R', 'O', 'N', 'D') AND f.C_ACCTSCHEMA_ID = SC.C_ACCTSCHEMA_ID AND ($5='Y' OR F.FACT_ACCT_GROUP_ID IN ( SELECT FACT_ACCT_GROUP_ID FROM FACT_ACCT WHERE ACCOUNT_ID IN ( SELECT c_elementvalue_id as name FROM C_ELEMENTVALUE WHERE value >= ( select value from c_elementvalue where c_elementvalue_id = $6) and value <= ( select value from c_elementvalue where c_elementvalue_id = $7) and c_elementvalue.ELEMENTLEVEL = 'S') AND AD_CLIENT_ID IN ('0','FF80818133B7413E0133B7164D6A0002') AND AD_ORG_ID IN ('0','FF80818134D2AA330134F1D03034277D','FF80818134D2AA330134F1D11B372783','FF80818133B7413E0133B71974AD28C6','96BD3AC81C95427788B46A17146F4F7B') AND 3=3 AND dateacct >= TO_DATE($8) AND dateacct < TO_DATE($9) AND C_ACCTSCHEMA_ID = $10 AND AD_ORG_ID IN('FF80818134D2AA330134F1D11B372783','FF80818134D2AA330134F1D03034277D','FF80818133B7413E0133B71974AD28C6') AND FactAcctType IN ('C', 'R', 'O', 'N', 'D') )) GROUP BY ev_trl.NAME, f.C_ACCTSCHEMA_ID, SC.NAME, F.AD_TABLE_ID, F.DATEACCT, F.ACCTDESCRIPTION, CASE WHEN 'N' = 'Y' THEN TO_CHAR(F.DESCRIPTION) ELSE TO_CHAR('') END, F.ACCTVALUE, F.DOCBASETYPE, F.RECORD_ID, F.FACT_ACCT_GROUP_ID, F.ACCOUNT_ID, F.FACTACCTTYPE, ( CASE F.AMTACCTDR WHEN 0 THEN ( CASE SIGN(F.AMTACCTCR) WHEN -1 THEN 1 ELSE 2 END) ELSE ( CASE SIGN(F.AMTACCTDR) WHEN -1 THEN 3 ELSE 4 END) END), F.AD_CLIENT_ID HAVING (sum(F.AMTACCTDR) <> 0 OR sum(F.AMTACCTCR) <> 0)) AA LEFT JOIN ( select * from AD_REF_LIST_V WHERE AD_REFERENCE_ID = '183' AND AD_LANGUAGE = $11) AR ON AR.VALUE = AA.DOCBASETYPE ORDER BY SCHEMA_NAME, DATEACCT, FACTACCTTYPE2, IDENTIFIER, AA.AMTACCTDR DESC, AA.AMTACCTCR DESC, SEQNO) B LIMIT 67 OFFSET 0) C WHERE 1 = 1;[ Date: 2026-07-16 13:18:02 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 50.65 MiB SELECT * FROM ( SELECT 0 AS RN1, G.* FROM ( SELECT COUNT(*) AS GROUPEDLINES, IDENTIFIER, SCHEMA_NAME, DATEACCT FROM ( SELECT SCHEMA_ID, SCHEMA_NAME, IDENTIFIER, DATEACCT, VALUE, NAME, ID, AD_TABLE_ID, DOCBASETYPE, SEQNO, '' AS TOTAL, '' AS DESCRIPTION, ( CASE AMTACCTDR WHEN 0 THEN NULL ELSE AMTACCTDR END) AS AMTACCTDR, ( CASE AMTACCTCR WHEN 0 THEN NULL ELSE AMTACCTCR END) AS AMTACCTCR FROM ( SELECT F.C_ACCTSCHEMA_ID AS SCHEMA_ID, SC.NAME AS SCHEMA_NAME, F.FACT_ACCT_GROUP_ID AS IDENTIFIER, F.DATEACCT, F.ACCTVALUE AS VALUE, F.ACCTDESCRIPTION AS NAME, F.RECORD_ID AS ID, F.AD_TABLE_ID, F.DOCBASETYPE, sum(F.AMTACCTDR) AS AMTACCTDR, sum(F.AMTACCTCR) AS AMTACCTCR, MIN(SEQNO) AS SEQNO FROM FACT_ACCT F, C_ACCTSCHEMA SC WHERE F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND 1 = 1 AND f.dateacct >= TO_DATE($1) AND f.dateacct < TO_DATE($2) AND f.C_ACCTSCHEMA_ID = $3 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.FactAcctType IN ('C', 'R', 'O', 'N', 'D') AND f.C_ACCTSCHEMA_ID = SC.C_ACCTSCHEMA_ID AND ($4 = 'Y' OR F.FACT_ACCT_GROUP_ID IN ( SELECT FACT_ACCT_GROUP_ID FROM FACT_ACCT WHERE ACCOUNT_ID IN ( SELECT c_elementvalue_id as name FROM C_ELEMENTVALUE WHERE value >= ( select value from c_elementvalue where c_elementvalue_id = $5) and value <= ( select value from c_elementvalue where c_elementvalue_id = $6) and c_elementvalue.ELEMENTLEVEL = 'S') AND AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND AD_ORG_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND 3 = 3 AND dateacct >= TO_DATE($7) AND dateacct < TO_DATE($8) AND C_ACCTSCHEMA_ID = $9 AND AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND FactAcctType IN ('C', 'R', 'O', 'N', 'D'))) GROUP BY f.C_ACCTSCHEMA_ID, SC.NAME, F.AD_TABLE_ID, F.DATEACCT, F.ACCTDESCRIPTION, F.ACCTVALUE, F.DOCBASETYPE, F.RECORD_ID, F.FACT_ACCT_GROUP_ID, F.ACCOUNT_ID, ( CASE F.AMTACCTDR WHEN 0 THEN ( CASE SIGN(F.AMTACCTCR) WHEN -1 THEN 1 ELSE 2 END) ELSE ( CASE SIGN(F.AMTACCTDR) WHEN -1 THEN 3 ELSE 4 END) END)) AA ORDER BY SCHEMA_NAME, DATEACCT, IDENTIFIER, SEQNO) BB GROUP BY IDENTIFIER, SCHEMA_NAME, DATEACCT ORDER BY SCHEMA_NAME, DATEACCT, IDENTIFIER) G) H WHERE 1 = 1;[ Date: 2026-07-16 13:18:01 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 46.51 MiB SELECT c_order_post1 ($1, $2, $3) AS RESULT FROM DUAL;[ Date: 2026-07-16 08:16:56 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 08:30:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 08:45:36 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 46.51 MiB SELECT * FROM C_Order_Post ($1);[ Date: 2026-07-16 09:16:12 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-16 09:32:57 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 09:41:49 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 46.51 MiB SELECT * FROM C_Order_Post ($1);[ Date: 2026-07-16 09:44:12 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 09:45:03 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 09:46:19 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 10:15:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 10:15:39 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 10:29:59 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-16 10:42:22 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 10:44:39 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 46.51 MiB SELECT * FROM C_Order_Post ($1);[ Date: 2026-07-16 10:49:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 10:49:49 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-16 10:53:57 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 11:07:45 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 6.96 sec Highest CPU-cost vacuum
Table public.c_invoice
Database etendo - 2026-07-16 17:57:08 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 6.96 sec Highest CPU-cost vacuum
Table public.c_invoice
Database etendo - 2026-07-16 17:57:08 Date
Analyzes per table
Key values
- public.ad_ep_instance_para (62) Main table analyzed (database etendo)
- 213 analyzes Total
Table Number of analyzes etendo.public.ad_ep_instance_para 62 etendo.public.ad_session 21 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.tables_list 12 etendo.profile.last_stat_io 8 etendo.profile.stmt_list 7 etendo.profile.funcs_list 5 etendo.profile.indexes_list 5 etendo.profile.last_extension_versions 5 etendo.public.ad_preference 4 etendo.profile.last_stat_activity_count_srv1 4 etendo.public.ad_sequence 3 etendo.profile.last_stat_slru 2 etendo.public.c_invoice 2 etendo.public.ad_process_request 2 etendo.public.fin_financial_account 1 etendo.profile.sample_stat_io 1 etendo.profile.sample_stat_slru 1 etendo.profile.sample_stat_user_functions 1 etendo.profile.sample_stat_database 1 etendo.profile.sample_stat_tables_total 1 etendo.profile.sample_stat_indexes_total 1 etendo.public.ad_pinstance 1 etendo.profile.sample_statements 1 etendo.profile.sample_stat_indexes 1 etendo.profile.sample_stat_tables 1 Total 213 Vacuums per table
Key values
- public.ad_ep_instance_para (37) Main table vacuumed on database etendo
- 140 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples etendo.public.ad_ep_instance_para 37 37 2,220 0 156 0 0 253 66 540,677 0 0 etendo.profile.last_stat_tables_srv1 17 15 17,309 0 233 0 0 11,589 236 1,614,215 0 0 etendo.profile.last_stat_user_functions_srv1 17 15 3,018 0 67 0 0 1,645 51 350,315 0 0 etendo.profile.last_stat_statements_srv1 17 15 13,479 0 223 0 0 8,669 222 1,347,108 0 0 etendo.profile.last_stat_indexes_srv1 17 15 21,981 0 370 0 0 14,994 375 2,316,507 0 0 etendo.profile.tables_list 7 7 1,180 0 16 0 0 671 15 172,958 0 0 etendo.profile.stmt_list 5 5 1,451 0 76 0 0 937 64 447,552 19 62 etendo.profile.indexes_list 4 4 516 0 22 0 0 136 11 99,616 0 0 etendo.profile.last_stat_io 4 4 242 0 18 0 0 28 9 66,278 0 0 etendo.profile.funcs_list 4 4 356 0 23 0 0 93 13 101,889 0 0 etendo.profile.last_extension_versions 2 2 101 0 10 0 0 10 4 33,452 0 0 etendo.profile.last_stat_activity_count_srv1 2 0 41 0 9 0 0 9 3 24,104 0 0 etendo.pg_toast.pg_toast_201017 1 1 127 0 41 0 0 68 13 53,304 6 14 etendo.profile.sample_stat_indexes 1 1 344 0 200 0 0 235 22 86,736 0 0 etendo.pg_toast.pg_toast_2619 1 1 756 0 232 0 0 452 137 346,793 44 87 etendo.pg_toast.pg_toast_548376 1 1 92 0 41 0 0 62 8 44,241 5 14 etendo.public.c_invoice 1 1 63,713 0 28,437 0 0 33,460 3,107 6,786,011 17 24 etendo.profile.last_stat_database_srv1 1 1 50 0 6 0 0 6 3 20,979 0 0 etendo.profile.last_stat_slru 1 1 52 0 5 0 0 5 2 16,712 0 0 Total 140 130 127,028 8,175 30,185 0 0 73,322 4,361 14,469,447 91 201 Vacuum throughput per table
Key values
- public.c_invoice (6.96) Max CPU elapsed for vacuum on database etendo
- unknown (0 ms) Max I/O read time for vacuum on database etendo
- unknown (0 ms) Max I/O write time for vacuum on database etendo
I/O timing (ms) CPU (s) Table read write elapsed etendo.public.ad_ep_instance_para 0 0 0 etendo.profile.last_stat_tables_srv1 0 0 0.16 etendo.profile.last_stat_user_functions_srv1 0 0 0 etendo.profile.last_stat_statements_srv1 0 0 0.11 etendo.profile.last_stat_indexes_srv1 0 0 0.32 etendo.profile.tables_list 0 0 0 etendo.profile.stmt_list 0 0 0 etendo.profile.indexes_list 0 0 0 etendo.profile.last_stat_io 0 0 0 etendo.profile.funcs_list 0 0 0 etendo.profile.last_extension_versions 0 0 0 etendo.profile.last_stat_activity_count_srv1 0 0 0 etendo.pg_toast.pg_toast_201017 0 0 0.01 etendo.profile.sample_stat_indexes 0 0 0.05 etendo.pg_toast.pg_toast_2619 0 0 0.06 etendo.pg_toast.pg_toast_548376 0 0 0 etendo.public.c_invoice 0 0 6.96 etendo.profile.last_stat_database_srv1 0 0 0 etendo.profile.last_stat_slru 0 0 0 Total 0 0 7.67 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (94122) Main table with removed tuples on database etendo
- 193059 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.profile.last_stat_indexes_srv1 17 15 94,122 65,298 12,530 252 6,251 etendo.profile.last_stat_tables_srv1 17 15 58,124 38,901 7,706 471 4,599 etendo.profile.last_stat_statements_srv1 17 15 27,472 27,754 2,859 471 2,738 etendo.profile.last_stat_user_functions_srv1 17 15 7,993 9,074 1,033 4 555 etendo.profile.tables_list 7 7 1,398 6,775 0 0 210 etendo.public.c_invoice 1 1 1,147 204,753 0 0 28,083 etendo.public.ad_ep_instance_para 37 37 788 8 8 35 2 etendo.profile.sample_stat_indexes 1 1 599 10,647 0 0 182 etendo.profile.stmt_list 5 5 371 4,063 22 0 369 etendo.pg_toast.pg_toast_2619 1 1 319 1,725 0 0 631 etendo.profile.indexes_list 4 4 190 1,413 21 0 40 etendo.profile.funcs_list 4 4 161 704 4 0 28 etendo.profile.last_stat_io 4 4 131 80 16 0 8 etendo.profile.last_extension_versions 2 2 108 18 0 0 2 etendo.profile.last_stat_slru 1 1 55 5 0 0 1 etendo.profile.last_stat_activity_count_srv1 2 0 40 8 8 1 1 etendo.pg_toast.pg_toast_201017 1 1 23 141 0 0 37 etendo.pg_toast.pg_toast_548376 1 1 14 164 0 0 38 etendo.profile.last_stat_database_srv1 1 1 4 4 0 0 1 Total 140 130 193,059 371,535 24,207 1,234 43,776 Pages removed per table
Key values
- profile.last_stat_tables_srv1 (471) Main table with removed pages on database etendo
- 1234 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed etendo.profile.last_stat_tables_srv1 17 15 58124 471 etendo.profile.last_stat_statements_srv1 17 15 27472 471 etendo.profile.last_stat_indexes_srv1 17 15 94122 252 etendo.public.ad_ep_instance_para 37 37 788 35 etendo.profile.last_stat_user_functions_srv1 17 15 7993 4 etendo.profile.last_stat_activity_count_srv1 2 0 40 1 etendo.pg_toast.pg_toast_201017 1 1 23 0 etendo.profile.indexes_list 4 4 190 0 etendo.profile.last_extension_versions 2 2 108 0 etendo.profile.sample_stat_indexes 1 1 599 0 etendo.profile.last_stat_io 4 4 131 0 etendo.pg_toast.pg_toast_2619 1 1 319 0 etendo.profile.stmt_list 5 5 371 0 etendo.pg_toast.pg_toast_548376 1 1 14 0 etendo.public.c_invoice 1 1 1147 0 etendo.profile.funcs_list 4 4 161 0 etendo.profile.tables_list 7 7 1398 0 etendo.profile.last_stat_database_srv1 1 1 4 0 etendo.profile.last_stat_slru 1 1 55 0 Total 140 130 193,059 1,234 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 16 07 5 8 08 9 13 09 8 16 10 11 19 11 9 16 12 12 19 13 7 14 14 7 14 15 12 21 16 14 20 17 13 23 18 6 7 19 10 7 20 6 6 21 11 10 22 0 0 - 6.96 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- ShareLock Main Lock Type
- 1 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 1 2s205ms 2s205ms 2s205ms 2s205ms select * from c_order_post (?);-
SELECT * FROM C_ORDER_POST ('442A0684520141A3AA7A35EE385DA068');
Date: 2026-07-16 15:16:12 Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('C02B844084634A12A689B79627C69E2D');
Date: 2026-07-16 16:19:00 Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('80115F4A83664475BACBA04ECE41359A');
Date: 2026-07-16 15:56:49 Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Queries that waited the most
Rank Wait time Query 1 2s205ms SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-16 16:18:53 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Queries
Queries by type
Key values
- 176 Total read queries
- 6 Total write queries
Queries by database
Key values
- etendo Main database
- 182 Requests
- 17m9s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 181 Requests
User Request type Count Duration postgres Total 1 1s1ms select 1 1s1ms tad Total 181 17m8s insert 5 16s156ms select 175 16m51s update 1 1s211ms Duration by user
Key values
- 17m8s (tad) Main time consuming user
User Request type Count Duration postgres Total 1 1s1ms select 1 1s1ms tad Total 181 17m8s insert 5 16s156ms select 175 16m51s update 1 1s211ms Queries by host
Key values
- 127.0.0.1 Main host
- 181 Requests
- 17m8s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 180 Requests
- 17m7s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-16 13:50:27 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 172 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 47s978ms select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('DA6D5109E0794236A336DF4E401DDF51', 'AF26C99F1F5B4BDA9ADE33281C824310', 'A74D5584155C4F2ABB29197BEEAB6AEF', 'A0EA6676758A431D97D0EF94B42A67DF', '999BC0DA6F604831BCE836ACC899B166', '8194420624964FAC9C7553A635DC07AC', '7030BD9DBC1F4E9DB35DA9639DAE294A', '6BFB63A78EB74D33BCF96CA70B345A32', '4DA771C0639B4722ABB73776386246C7', '44283D5184804405B5322523206369DF', '2B3669E169F94F159126C4FD0783410C', '0DECD474EEE04C9288CCC2EF80CB9067', 'D77F3EC2F2FB4F0E8167AE5A720DA84B', 'CF4FE921173D4296A13612C39A226ABB', '974C3A378CBC492C8AC100C35B262D28', '92FB4AA6CF8C4016ABCF18B511F990E4', '902BE349A14C46C484FDE3AA4CA87FD1', '70E06199D44142D2AC0425EA5A0E4E25', '6D1A505D0A874F5B8EFD2CADD6542C78', '57CDF98D9C954D519E6902F8AE16AB0E', '40A7E834ED004BC0BC56E8EBC39E3F96', '3EB2D430287B4C578B13E33CD71028B4', '253A1863F8894B348BBC8235B3B7B4FD', 'D1BBB239C3BA4FCE80C09CA8F3AC90DC', 'CBCA234DA9B74D84B2165C1AD8183CBD', 'B203A5E9D8784D56807F6C07C968B979', 'AF9059E7C4F14AB0877DF403E828905D', '9D60729BADAE4DFEBB393723AA46A9B8', '907395AA40CD4274AECE7E26691CF41E', '2F08189EB11D4B95B70C015C9DD6077C', 'ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '5ABD202EBA7A425AA48CE424BB714D79', 'FAE634ADA07B4BA0A943FCBC71269F1C');[ Date: 2026-07-16 13:53:29 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 47s687ms select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('BBC8993C9B36449E95538F8BC635937D', 'BB1C633AA69344E3B614CE64E6E5A73F', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53', 'B5776043334E4F0B95A45E7E9ADB6CB3', 'B4DEB76EB3DE440AA03884C3AD5BC3A7', 'A613569C616B4400A67CF0D2E98E25B8', '9DE3E845BFFC4A90A3DB21B8ECA3AF83', '9CBAA873B64242F48DEE11BD7BDAB6A1', '7B96CE62188341F8A9F65807E5BDE3CD', '7AC5E7AF6F744819B5866D21F11E5D98', '6E1A004618DF48A08C11E6AB69C776DB', '5DE33BA2BB0C408EB2225A522952B93A', '5706ECDDBB9B4D41BF734341204461B2', '3F8FA22AA507446D87BFA9606F8072EF', '3B63B0F2F82246B2B7DE41D8091EC984', '2CAB937F19A44748B75691078B8720B9', '1226078C4C694576804583ACE24E3CD1', '0F80F36AD02C4185BB146A2523B3A431', '046E97912FB44F5787E61044CA75E783', 'FE8EFFA3F1724CE5A78E4532E8195A2C', 'F48F564D3EE54934A2E6A5D3555590CA', 'DCC1A05E11734188AD665D1C7F6A8B2C', 'CFB49E3F6DFA43988C9820CFCDF4D722', 'C2830A625C984F3FB65E946DF2779D5F', 'AB80C22BCAC74F56A98588F72B0BD6FA', '9D2FC4CF3D2D4DDC8DF9765E7605691D', '885134123AB646009C9FC6B8D5880267', '70BB8001548149C69D5197506CF16EFD', '567187AA7CAB449A886A6680521D3C52', '519ACB7BDE114495B0F2D46047F2782E', '45512BEB1434414FB421BB54F92A104E', '405EBE347D3E4391BE791C5A74742437', '3844AFF038554BBC86F7FD6A1225D528', '0304315403A44A4188FDF14E43C6261B', 'E6A5BF9EE2B3463B9F2ED43DD53F5F72', 'E68E7F26E6824330AD82619695DC47C4');[ Date: 2026-07-16 10:52:07 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 47s673ms select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('CEA9CD52250B4B29B846C042C96F2922', 'C73F04E916A542A6A7C6BC804ECAA073', 'A727D6966444476BA22F8B1311B551A3', '9E2ACDE62C4148E19F2FE87DCFAC03F8', '8D26BC165048413D88C1685253901CD6', '5E9BAB4472444E47A9E6EBA94854EFC3', '4D2AAFB1CFDE47549AC2FE79A4F9FB1A', 'D016BF162A0D44C89BB2E6990520C605', 'ACFDB325EB4F4DF8BF58378D22D9F44F', '937405A6B3724C9A83634E5506AD705A', '4491D6600BF14B59B3CD6CF7ABBD15DA', '2EDE7CF7A16A477E8410E2BAA1926C37', '22BC19172EF541DDA63167D80D768B04', 'EB82D8DBCF924F68A64FE58482C75215', '991C37144AC14AFCBF08A9EC3C82F3D3', '722FDF555D484CB5988814C95EB555B3', '62A7795968BB46E798B6E10EB46FAD1C', 'FDEFE41886A84F968C0EADEED98AD68A', 'DF3FAA6669134BE583F1B43CE2FCD4EE', 'DB96D645ED944C42922CACB8EA52035B', 'C3C80C6B41E44E57995481EE244760BE', 'BA08B5F7E11646858B2F33220E9B9185', 'AD0AA61E1DC245A599E0F4DF70DB8383', '932529E707E34CB4A3ACF355958E7D64', '9099F11C2EE14F519D6DCA39EE22C9C5', '8BAA962A033249688B9F67D4C6DE2576', '5608C842F1734D239A116534E2882093', '32105F26116F4B27AE11F14975663678', '2C5ACB9469B3491FB15AB1C8A35A3EE9', '1927365C95C7490DA32C4CDF2EB75C0C', 'FB82FC2562A940338FD986F8F0269025', '75D9B11D98FF4665BB603C010156228A', '3BC6405AA4E44A549C9ACE2FDDF91C63', 'D75BD6F5F66B44A5990103A873EAD7D8', 'B61FB40211F548B0AA9D0C4AAF09C554', 'A99C8AEEE2C943FBA55966D4C5E31CB8', '9366F4352F624DEB9C23C52FCB18D321', '83106130B1D3435387E43EF91FC7B5A2', '25AB778E4A0F443981A3F6F4546E75F4', '1406F359228A43E39D0A769EC593546F', 'FA61AF6FAAD44AB5A6D03C15D4E3FA9C', 'D674DE7912FB4C18B9E970DDF4247484', 'B633C5444578453888DE901687603DAB', '34163C4142ED4F2CBDF60FF1CDACE2D6', '1E461566C8C748719C8E4DC8592F7698', '1BDBD8AA6E5D40178C7DCF53AA759250', '194F1E050D33409D9EA355391AAD2E01', '9073B8C50C8042F59C68214375FF34F7', '7A6F82E9F9E1442A8C0B1F993EA3F25F', '5CA665CBF27249A7AC2BB3B134D5F308');[ Date: 2026-07-16 10:36:29 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 47s627ms select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('AF9059E7C4F14AB0877DF403E828905D', '9D60729BADAE4DFEBB393723AA46A9B8', '2F08189EB11D4B95B70C015C9DD6077C', 'BF731ED9A22444D69932D55067CCE293', '8577819CD29C40C1A59308306AF3C689', '20101CF85949484FB7BCFB2AE3C88768', 'C88F465EDEA34CA39868816F4B96B901', '5ABD202EBA7A425AA48CE424BB714D79', 'C904A961AB9940FDADC873790241C5AB', 'BB1C633AA69344E3B614CE64E6E5A73F', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', 'F7B1713212A04ED894689CA1528F6415', 'B4DEB76EB3DE440AA03884C3AD5BC3A7', '7AC5E7AF6F744819B5866D21F11E5D98', '5706ECDDBB9B4D41BF734341204461B2', '0F80F36AD02C4185BB146A2523B3A431', 'FE8EFFA3F1724CE5A78E4532E8195A2C', 'F48F564D3EE54934A2E6A5D3555590CA', 'CFB49E3F6DFA43988C9820CFCDF4D722', 'C2830A625C984F3FB65E946DF2779D5F', 'AB80C22BCAC74F56A98588F72B0BD6FA', '9D2FC4CF3D2D4DDC8DF9765E7605691D', '567187AA7CAB449A886A6680521D3C52', '45512BEB1434414FB421BB54F92A104E', '3844AFF038554BBC86F7FD6A1225D528', '0304315403A44A4188FDF14E43C6261B', '63A32197912B4B71BF77B4EEF946B34D', '2A4F9ED9EC9A4753BF2D4A116BA4E5E6', 'C472B388170A4DA4BAC28CA41B3AF168', 'F118180D58B447B3940CB493C571C1EE', 'D53F1EE4FA0B4D728CF23AFC7463588C', 'A6268B54DBF7494DA33FC0289075811E', '77F5DE88C40C42528C7B78D46C16C164', '47F58D2CD1304322B1E8ABF8A0E71E18', '35D9756117CB4EEEB584720371D18C34', '2BA1F49F1EA8436892FFA3657CA2E71C', '0D982F18ED3A4FE486BA3BBCEB13C4C8', '06DD9838EE2140968CB4ED7858739FC1', 'D30A9D4C6B6346D7AC8103CD18772B68', 'E4DDEA6787FB45859C04BA07B3783EB3', '32C0C0E111C3469BB5EFBC6AC1AFDC7D', 'F7B7D3ED69CA4E5BA335AE600EA5976F', '75A621888EBC4E7498A09DD0B7DC90B6', '634D4C67E85D42A8858E9C14413154DE', 'F51637E95B4C4993B51C29D0EA033C9B', 'F48A18DA189C42649A8D1A103C53F750', 'EE091D954C774ACB97889AC4B3852153', 'DA624E9D7A8F415DBC90DBCBE5C732C2', 'D7BC67C6CF794154A209754726C6DEBE');[ Date: 2026-07-16 10:35:41 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
5 47s582ms select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('F9A194C1F4D0414697752C62AAD78801', 'EF6816B9922F4E4D817CBE44928D53B3', 'EBCD671A6A684CAF81ACA00144BD8448', 'DE2F6D07F55C4F50A200A4C9C6570E9F', 'C904A961AB9940FDADC873790241C5AB', 'BBC8993C9B36449E95538F8BC635937D', 'BB1C633AA69344E3B614CE64E6E5A73F', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53', 'B5776043334E4F0B95A45E7E9ADB6CB3', 'B4DEB76EB3DE440AA03884C3AD5BC3A7', 'A613569C616B4400A67CF0D2E98E25B8', '9DE3E845BFFC4A90A3DB21B8ECA3AF83', '9CBAA873B64242F48DEE11BD7BDAB6A1', '7B96CE62188341F8A9F65807E5BDE3CD', '7AC5E7AF6F744819B5866D21F11E5D98', '6E1A004618DF48A08C11E6AB69C776DB', '5DE33BA2BB0C408EB2225A522952B93A', '5706ECDDBB9B4D41BF734341204461B2', '3F8FA22AA507446D87BFA9606F8072EF', '3B63B0F2F82246B2B7DE41D8091EC984', '2CAB937F19A44748B75691078B8720B9', '1226078C4C694576804583ACE24E3CD1', '0F80F36AD02C4185BB146A2523B3A431', '046E97912FB44F5787E61044CA75E783', 'FE8EFFA3F1724CE5A78E4532E8195A2C', 'F48F564D3EE54934A2E6A5D3555590CA', 'DCC1A05E11734188AD665D1C7F6A8B2C', 'CFB49E3F6DFA43988C9820CFCDF4D722', 'C2830A625C984F3FB65E946DF2779D5F', 'AB80C22BCAC74F56A98588F72B0BD6FA', '9D2FC4CF3D2D4DDC8DF9765E7605691D', '885134123AB646009C9FC6B8D5880267', '70BB8001548149C69D5197506CF16EFD', '567187AA7CAB449A886A6680521D3C52', '519ACB7BDE114495B0F2D46047F2782E', '45512BEB1434414FB421BB54F92A104E');[ Date: 2026-07-16 13:54:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 46s947ms select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('DA6D5109E0794236A336DF4E401DDF51', 'A74D5584155C4F2ABB29197BEEAB6AEF', 'A0EA6676758A431D97D0EF94B42A67DF', '7030BD9DBC1F4E9DB35DA9639DAE294A', '4DA771C0639B4722ABB73776386246C7', '44283D5184804405B5322523206369DF', '2B3669E169F94F159126C4FD0783410C', 'D77F3EC2F2FB4F0E8167AE5A720DA84B', 'CF4FE921173D4296A13612C39A226ABB', '974C3A378CBC492C8AC100C35B262D28', '92FB4AA6CF8C4016ABCF18B511F990E4', '902BE349A14C46C484FDE3AA4CA87FD1', '70E06199D44142D2AC0425EA5A0E4E25', '6D1A505D0A874F5B8EFD2CADD6542C78', '57CDF98D9C954D519E6902F8AE16AB0E', '40A7E834ED004BC0BC56E8EBC39E3F96', '3EB2D430287B4C578B13E33CD71028B4', '253A1863F8894B348BBC8235B3B7B4FD', 'D1BBB239C3BA4FCE80C09CA8F3AC90DC', 'CBCA234DA9B74D84B2165C1AD8183CBD', 'B203A5E9D8784D56807F6C07C968B979', 'AF9059E7C4F14AB0877DF403E828905D', '9D60729BADAE4DFEBB393723AA46A9B8', '907395AA40CD4274AECE7E26691CF41E', '2F08189EB11D4B95B70C015C9DD6077C', 'ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '5ABD202EBA7A425AA48CE424BB714D79', 'FAE634ADA07B4BA0A943FCBC71269F1C', 'F9A194C1F4D0414697752C62AAD78801', 'EF6816B9922F4E4D817CBE44928D53B3', 'EBCD671A6A684CAF81ACA00144BD8448', 'DE2F6D07F55C4F50A200A4C9C6570E9F', 'C904A961AB9940FDADC873790241C5AB');[ Date: 2026-07-16 10:51:19 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 46s909ms select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53', 'B5776043334E4F0B95A45E7E9ADB6CB3', 'B4DEB76EB3DE440AA03884C3AD5BC3A7', 'A613569C616B4400A67CF0D2E98E25B8', '9DE3E845BFFC4A90A3DB21B8ECA3AF83', '9CBAA873B64242F48DEE11BD7BDAB6A1', '7B96CE62188341F8A9F65807E5BDE3CD', '7AC5E7AF6F744819B5866D21F11E5D98', '6E1A004618DF48A08C11E6AB69C776DB', '5DE33BA2BB0C408EB2225A522952B93A', '5706ECDDBB9B4D41BF734341204461B2', '3F8FA22AA507446D87BFA9606F8072EF', '3B63B0F2F82246B2B7DE41D8091EC984', '2CAB937F19A44748B75691078B8720B9', '1226078C4C694576804583ACE24E3CD1', '0F80F36AD02C4185BB146A2523B3A431', '046E97912FB44F5787E61044CA75E783', 'FE8EFFA3F1724CE5A78E4532E8195A2C', 'F48F564D3EE54934A2E6A5D3555590CA', 'DCC1A05E11734188AD665D1C7F6A8B2C', 'CFB49E3F6DFA43988C9820CFCDF4D722', 'C2830A625C984F3FB65E946DF2779D5F', 'AB80C22BCAC74F56A98588F72B0BD6FA', '9D2FC4CF3D2D4DDC8DF9765E7605691D', '885134123AB646009C9FC6B8D5880267', '70BB8001548149C69D5197506CF16EFD', '567187AA7CAB449A886A6680521D3C52', '519ACB7BDE114495B0F2D46047F2782E', '45512BEB1434414FB421BB54F92A104E', '405EBE347D3E4391BE791C5A74742437', '3844AFF038554BBC86F7FD6A1225D528', '0304315403A44A4188FDF14E43C6261B', 'E6A5BF9EE2B3463B9F2ED43DD53F5F72', 'E68E7F26E6824330AD82619695DC47C4', 'D8617618D51949C49ED8F8B312E13F7C', 'BE36F9157A3E4B43AAE7C6E245B63C67');[ Date: 2026-07-16 10:08:10 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 46s695ms select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('DA6D5109E0794236A336DF4E401DDF51', 'A74D5584155C4F2ABB29197BEEAB6AEF', 'A0EA6676758A431D97D0EF94B42A67DF', '4DA771C0639B4722ABB73776386246C7', '44283D5184804405B5322523206369DF', 'D77F3EC2F2FB4F0E8167AE5A720DA84B', 'CF4FE921173D4296A13612C39A226ABB', '974C3A378CBC492C8AC100C35B262D28', '92FB4AA6CF8C4016ABCF18B511F990E4', '902BE349A14C46C484FDE3AA4CA87FD1', '70E06199D44142D2AC0425EA5A0E4E25', '6D1A505D0A874F5B8EFD2CADD6542C78', '57CDF98D9C954D519E6902F8AE16AB0E', '40A7E834ED004BC0BC56E8EBC39E3F96', '3EB2D430287B4C578B13E33CD71028B4', '253A1863F8894B348BBC8235B3B7B4FD', 'D1BBB239C3BA4FCE80C09CA8F3AC90DC', 'CBCA234DA9B74D84B2165C1AD8183CBD', 'B203A5E9D8784D56807F6C07C968B979', 'AF9059E7C4F14AB0877DF403E828905D', '9D60729BADAE4DFEBB393723AA46A9B8', '907395AA40CD4274AECE7E26691CF41E', '2F08189EB11D4B95B70C015C9DD6077C', 'ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '5ABD202EBA7A425AA48CE424BB714D79', 'FAE634ADA07B4BA0A943FCBC71269F1C', 'F9A194C1F4D0414697752C62AAD78801', 'EF6816B9922F4E4D817CBE44928D53B3', 'EBCD671A6A684CAF81ACA00144BD8448', 'DE2F6D07F55C4F50A200A4C9C6570E9F', 'C904A961AB9940FDADC873790241C5AB', 'BBC8993C9B36449E95538F8BC635937D', 'BB1C633AA69344E3B614CE64E6E5A73F');[ Date: 2026-07-16 10:07:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
9 11s254ms SELECT c_order_post1 (NULL, '7F75B8BF2EA94E0C94F83178CE55102A', 'N') AS RESULT FROM DUAL;[ Date: 2026-07-16 08:16:56 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 10s578ms SELECT * FROM C_ORDER_POST ('442A0684520141A3AA7A35EE385DA068');[ Date: 2026-07-16 15:16:12 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
11 9s165ms SELECT * FROM C_ORDER_POST ('C02B844084634A12A689B79627C69E2D');[ Date: 2026-07-16 16:19:00 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 7s534ms SELECT * FROM C_ORDER_POST ('80115F4A83664475BACBA04ECE41359A');[ Date: 2026-07-16 15:56:49 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 7s446ms SELECT * FROM C_ORDER_POST ('EFA09E37E1004563BB3CA7B2DCA255FB');[ Date: 2026-07-16 15:47:07 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 7s437ms SELECT * FROM C_ORDER_POST ('4CC80B14CEE54FCEBAE5F0D2AAC7DF36');[ Date: 2026-07-16 09:41:49 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 7s422ms SELECT * FROM C_ORDER_POST ('E1F6A82090CB4F76BF1291FAC041FC1B');[ Date: 2026-07-16 16:00:37 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 7s417ms SELECT * FROM C_ORDER_POST ('168EDC3461A64C7CA5BF0D727D45B4A6');[ Date: 2026-07-16 16:00:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 7s385ms SELECT * FROM C_ORDER_POST ('09C29F8A165048B5A9D589E67FF989D5');[ Date: 2026-07-16 16:17:10 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 7s332ms SELECT * FROM C_ORDER_POST ('1B673DFD4107408DA98556370A76421E');[ Date: 2026-07-16 08:45:36 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 7s309ms SELECT * FROM C_ORDER_POST ('A93C6B65CDE84D49ACE87815E0A22046');[ Date: 2026-07-16 10:15:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 7s293ms SELECT * FROM C_ORDER_POST ('76D619E8484D430BAC11F2F6D259D5FA');[ Date: 2026-07-16 10:15:39 - 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 6m27s 10 3s63ms 47s978ms 38s718ms select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id in (...);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 16 10 8 4m51s 36s452ms 13 2 1m35s 47s780ms [ User: tad - Total duration: 6m27s - Times executed: 10 ]
[ Application: openbravo - Total duration: 6m27s - Times executed: 10 ]
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('DA6D5109E0794236A336DF4E401DDF51', 'AF26C99F1F5B4BDA9ADE33281C824310', 'A74D5584155C4F2ABB29197BEEAB6AEF', 'A0EA6676758A431D97D0EF94B42A67DF', '999BC0DA6F604831BCE836ACC899B166', '8194420624964FAC9C7553A635DC07AC', '7030BD9DBC1F4E9DB35DA9639DAE294A', '6BFB63A78EB74D33BCF96CA70B345A32', '4DA771C0639B4722ABB73776386246C7', '44283D5184804405B5322523206369DF', '2B3669E169F94F159126C4FD0783410C', '0DECD474EEE04C9288CCC2EF80CB9067', 'D77F3EC2F2FB4F0E8167AE5A720DA84B', 'CF4FE921173D4296A13612C39A226ABB', '974C3A378CBC492C8AC100C35B262D28', '92FB4AA6CF8C4016ABCF18B511F990E4', '902BE349A14C46C484FDE3AA4CA87FD1', '70E06199D44142D2AC0425EA5A0E4E25', '6D1A505D0A874F5B8EFD2CADD6542C78', '57CDF98D9C954D519E6902F8AE16AB0E', '40A7E834ED004BC0BC56E8EBC39E3F96', '3EB2D430287B4C578B13E33CD71028B4', '253A1863F8894B348BBC8235B3B7B4FD', 'D1BBB239C3BA4FCE80C09CA8F3AC90DC', 'CBCA234DA9B74D84B2165C1AD8183CBD', 'B203A5E9D8784D56807F6C07C968B979', 'AF9059E7C4F14AB0877DF403E828905D', '9D60729BADAE4DFEBB393723AA46A9B8', '907395AA40CD4274AECE7E26691CF41E', '2F08189EB11D4B95B70C015C9DD6077C', 'ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '5ABD202EBA7A425AA48CE424BB714D79', 'FAE634ADA07B4BA0A943FCBC71269F1C');
Date: 2026-07-16 13:53:29 Duration: 47s978ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('BBC8993C9B36449E95538F8BC635937D', 'BB1C633AA69344E3B614CE64E6E5A73F', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53', 'B5776043334E4F0B95A45E7E9ADB6CB3', 'B4DEB76EB3DE440AA03884C3AD5BC3A7', 'A613569C616B4400A67CF0D2E98E25B8', '9DE3E845BFFC4A90A3DB21B8ECA3AF83', '9CBAA873B64242F48DEE11BD7BDAB6A1', '7B96CE62188341F8A9F65807E5BDE3CD', '7AC5E7AF6F744819B5866D21F11E5D98', '6E1A004618DF48A08C11E6AB69C776DB', '5DE33BA2BB0C408EB2225A522952B93A', '5706ECDDBB9B4D41BF734341204461B2', '3F8FA22AA507446D87BFA9606F8072EF', '3B63B0F2F82246B2B7DE41D8091EC984', '2CAB937F19A44748B75691078B8720B9', '1226078C4C694576804583ACE24E3CD1', '0F80F36AD02C4185BB146A2523B3A431', '046E97912FB44F5787E61044CA75E783', 'FE8EFFA3F1724CE5A78E4532E8195A2C', 'F48F564D3EE54934A2E6A5D3555590CA', 'DCC1A05E11734188AD665D1C7F6A8B2C', 'CFB49E3F6DFA43988C9820CFCDF4D722', 'C2830A625C984F3FB65E946DF2779D5F', 'AB80C22BCAC74F56A98588F72B0BD6FA', '9D2FC4CF3D2D4DDC8DF9765E7605691D', '885134123AB646009C9FC6B8D5880267', '70BB8001548149C69D5197506CF16EFD', '567187AA7CAB449A886A6680521D3C52', '519ACB7BDE114495B0F2D46047F2782E', '45512BEB1434414FB421BB54F92A104E', '405EBE347D3E4391BE791C5A74742437', '3844AFF038554BBC86F7FD6A1225D528', '0304315403A44A4188FDF14E43C6261B', 'E6A5BF9EE2B3463B9F2ED43DD53F5F72', 'E68E7F26E6824330AD82619695DC47C4');
Date: 2026-07-16 10:52:07 Duration: 47s687ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('CEA9CD52250B4B29B846C042C96F2922', 'C73F04E916A542A6A7C6BC804ECAA073', 'A727D6966444476BA22F8B1311B551A3', '9E2ACDE62C4148E19F2FE87DCFAC03F8', '8D26BC165048413D88C1685253901CD6', '5E9BAB4472444E47A9E6EBA94854EFC3', '4D2AAFB1CFDE47549AC2FE79A4F9FB1A', 'D016BF162A0D44C89BB2E6990520C605', 'ACFDB325EB4F4DF8BF58378D22D9F44F', '937405A6B3724C9A83634E5506AD705A', '4491D6600BF14B59B3CD6CF7ABBD15DA', '2EDE7CF7A16A477E8410E2BAA1926C37', '22BC19172EF541DDA63167D80D768B04', 'EB82D8DBCF924F68A64FE58482C75215', '991C37144AC14AFCBF08A9EC3C82F3D3', '722FDF555D484CB5988814C95EB555B3', '62A7795968BB46E798B6E10EB46FAD1C', 'FDEFE41886A84F968C0EADEED98AD68A', 'DF3FAA6669134BE583F1B43CE2FCD4EE', 'DB96D645ED944C42922CACB8EA52035B', 'C3C80C6B41E44E57995481EE244760BE', 'BA08B5F7E11646858B2F33220E9B9185', 'AD0AA61E1DC245A599E0F4DF70DB8383', '932529E707E34CB4A3ACF355958E7D64', '9099F11C2EE14F519D6DCA39EE22C9C5', '8BAA962A033249688B9F67D4C6DE2576', '5608C842F1734D239A116534E2882093', '32105F26116F4B27AE11F14975663678', '2C5ACB9469B3491FB15AB1C8A35A3EE9', '1927365C95C7490DA32C4CDF2EB75C0C', 'FB82FC2562A940338FD986F8F0269025', '75D9B11D98FF4665BB603C010156228A', '3BC6405AA4E44A549C9ACE2FDDF91C63', 'D75BD6F5F66B44A5990103A873EAD7D8', 'B61FB40211F548B0AA9D0C4AAF09C554', 'A99C8AEEE2C943FBA55966D4C5E31CB8', '9366F4352F624DEB9C23C52FCB18D321', '83106130B1D3435387E43EF91FC7B5A2', '25AB778E4A0F443981A3F6F4546E75F4', '1406F359228A43E39D0A769EC593546F', 'FA61AF6FAAD44AB5A6D03C15D4E3FA9C', 'D674DE7912FB4C18B9E970DDF4247484', 'B633C5444578453888DE901687603DAB', '34163C4142ED4F2CBDF60FF1CDACE2D6', '1E461566C8C748719C8E4DC8592F7698', '1BDBD8AA6E5D40178C7DCF53AA759250', '194F1E050D33409D9EA355391AAD2E01', '9073B8C50C8042F59C68214375FF34F7', '7A6F82E9F9E1442A8C0B1F993EA3F25F', '5CA665CBF27249A7AC2BB3B134D5F308');
Date: 2026-07-16 10:36:29 Duration: 47s673ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 5m28s 45 6s929ms 10s578ms 7s298ms select * from c_order_post (?);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 16 08 2 14s305ms 7s152ms 09 5 36s56ms 7s211ms 10 6 42s781ms 7s130ms 11 2 14s185ms 7s92ms 12 7 49s680ms 7s97ms 15 11 1m22s 7s538ms 16 8 59s836ms 7s479ms 17 4 28s665ms 7s166ms [ User: tad - Total duration: 5m28s - Times executed: 45 ]
[ Application: openbravo - Total duration: 5m28s - Times executed: 45 ]
-
SELECT * FROM C_ORDER_POST ('442A0684520141A3AA7A35EE385DA068');
Date: 2026-07-16 15:16:12 Duration: 10s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('C02B844084634A12A689B79627C69E2D');
Date: 2026-07-16 16:19:00 Duration: 9s165ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('80115F4A83664475BACBA04ECE41359A');
Date: 2026-07-16 15:56:49 Duration: 7s534ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 1m38s 14 6s812ms 7s230ms 7s20ms select * from m_inout_post0 (?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 16 09 1 6s923ms 6s923ms 10 2 14s201ms 7s100ms 12 2 14s242ms 7s121ms 15 2 14s206ms 7s103ms 16 5 34s902ms 6s980ms 17 2 13s809ms 6s904ms [ User: tad - Total duration: 1m38s - Times executed: 14 ]
[ Application: openbravo - Total duration: 1m38s - Times executed: 14 ]
-
SELECT * FROM M_InOut_Post0 ('EFC0907C15CC42EC9CC31DF915FCB47A');
Date: 2026-07-16 10:53:57 Duration: 7s230ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('9325007680064BD48B8D81C2A641BB3F');
Date: 2026-07-16 12:47:23 Duration: 7s188ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('37FB150F17C44DD0942516764B596BBE');
Date: 2026-07-16 15:35:24 Duration: 7s177ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 25s252ms 3 6s991ms 11s254ms 8s417ms select c_order_post1 (null, ?, ?) as result from dual;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 08 1 11s254ms 11s254ms 12 2 13s997ms 6s998ms [ User: tad - Total duration: 25s252ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 25s252ms - Times executed: 3 ]
-
SELECT c_order_post1 (NULL, '7F75B8BF2EA94E0C94F83178CE55102A', 'N') AS RESULT FROM DUAL;
Date: 2026-07-16 08:16:56 Duration: 11s254ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, 'CEEC7D5C133646B5846B35104A3AF91A', 'N') AS RESULT FROM DUAL;
Date: 2026-07-16 12:34:55 Duration: 7s6ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, '0805CCED0BCF45F6987F170594F0F8D7', 'N') AS RESULT FROM DUAL;
Date: 2026-07-16 12:35:46 Duration: 6s991ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 18s626ms 9 1s979ms 2s198ms 2s69ms select invoicecan0_.c_order_id as col_0_0_, organizati2_.name as col_1_0_, invoicecan0_.c_doctype_id as col_2_0_, invoicecan0_.documentno as col_3_0_, businesspa3_.name as col_4_0_, invoicecan0_.dateordered as col_5_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end as col_6_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end as col_7_0_, invoicecan0_.term as col_8_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? then case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then ?.? else invoicecan0_.pendinglines end as col_9_0_, invoicecan0_.qtyordered as col_10_0_, invoicecan0_.qtydelivered as col_11_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end - ( case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end) as col_12_0_, invoicecan0_.amountlinesgross as col_13_0_, invoicecan0_.created as col_14_0_, invoicecan0_.createdby as col_15_0_, invoicecan0_.updated as col_16_0_, invoicecan0_.updatedby as col_17_0_, documentty4_.c_doctype_id as c_doctyp1_224_0_, aduser5_.ad_user_id as ad_user_1_129_1_, aduser6_.ad_user_id as ad_user_1_129_2_, documentty4_.ad_client_id as ad_clien2_224_0_, documentty4_.ad_org_id as ad_org_i3_224_0_, documentty4_.isactive as isactive4_224_0_, documentty4_.created as created5_224_0_, documentty4_.createdby as createdb6_224_0_, documentty4_.updated as updated7_224_0_, documentty4_.updatedby as updatedb8_224_0_, documentty4_.name as name9_224_0_, documentty4_.printname as printna10_224_0_, documentty4_.description as descrip11_224_0_, documentty4_.docbasetype as docbase12_224_0_, documentty4_.issotrx as issotrx13_224_0_, documentty4_.docsubtypeso as docsubt14_224_0_, documentty4_.c_doctypeshipment_id as c_docty15_224_0_, documentty4_.c_doctypeinvoice_id as c_docty16_224_0_, documentty4_.isdocnocontrolled as isdocno17_224_0_, documentty4_.docnosequence_id as docnose18_224_0_, documentty4_.gl_category_id as gl_cate19_224_0_, documentty4_.documentnote as documen20_224_0_, documentty4_.isdefault as isdefau21_224_0_, documentty4_.documentcopies as documen22_224_0_, documentty4_.ad_table_id as ad_tabl23_224_0_, documentty4_.orgfiltered as orgfilt24_224_0_, documentty4_.c_doctype_reversed_id as c_docty25_224_0_, documentty4_.em_intr_transaction_type as em_intr26_224_0_, documentty4_.isexpense as isexpen27_224_0_, documentty4_.em_intr_statistical_regime as em_intr28_224_0_, documentty4_.isreversal as isrever29_224_0_, documentty4_.isreturn as isretur30_224_0_, documentty4_.c_doctypeorder_id as c_docty31_224_0_, documentty4_.c_doctypesimpinvoice_id as c_docty32_224_0_, documentty4_.em_obwpl_useoutbound as em_obwp33_224_0_, documentty4_.em_prouti_c_doctypeorder_id as em_prou34_224_0_, documentty4_.c_doctypeaggrinvoice_id as c_docty35_224_0_, documentty4_.em_obwpl_isgroup as em_obwp36_224_0_, documentty4_.em_obwpl_generateshipment as em_obwp37_224_0_, documentty4_.em_tbai_ad_sequence_id as em_tbai38_224_0_, documentty4_.em_etvfac_inv_type as em_etvf39_224_0_, documentty4_.em_obwpl_shipmentdoctype_id as em_obwp40_224_0_, documentty4_.em_etvfac_verifac_desc as em_etvf41_224_0_, documentty4_.em_etvfac_external_ref as em_etvf42_224_0_, documentty4_.em_etvfac_simpinvart7273 as em_etvf43_224_0_, documentty4_.em_etvfac_invnoidart61d as em_etvf44_224_0_, documentty4_.em_prwss_is_ws_type as em_prws45_224_0_, documentty4_.em_etvfac_reverseinvtype as em_etvf46_224_0_, documentty4_.em_etsg_isrectificative as em_etsg47_224_0_, documentty4_.em_pruti_inforeport2 as em_prut48_224_0_, documentty4_.em_pruti_inforeport as em_prut49_224_0_, documentty4_.em_pruti_inforeport3 as em_prut50_224_0_, documentty4_.em_pruti_image_id as em_prut51_224_0_, documentty4_.em_pruti_image2_id as em_prut52_224_0_, documentty4_.em_pruti_email as em_prut53_224_0_, documentty4_.em_pruti_url as em_prut54_224_0_, documentty4_.em_pruti_phone as em_prut55_224_0_, documentty4_.em_pruti_phone2 as em_prut56_224_0_, documentty4_.em_pruti_fax as em_prut57_224_0_, aduser5_.ad_client_id as ad_clien2_129_1_, aduser5_.ad_org_id as ad_org_i3_129_1_, aduser5_.isactive as isactive4_129_1_, aduser5_.created as created5_129_1_, aduser5_.createdby as createdb6_129_1_, aduser5_.updated as updated7_129_1_, aduser5_.updatedby as updatedb8_129_1_, aduser5_.name as name9_129_1_, aduser5_.description as descrip10_129_1_, aduser5_.password as passwor11_129_1_, aduser5_.email as email12_129_1_, aduser5_.supervisor_id as supervi13_129_1_, aduser5_.c_bpartner_id as c_bpart14_129_1_, aduser5_.processing as process15_129_1_, aduser5_.emailuser as emailus16_129_1_, aduser5_.emailuserpw as emailus17_129_1_, aduser5_.c_bpartner_location_id as c_bpart18_129_1_, aduser5_.c_greeting_id as c_greet19_129_1_, aduser5_.title as title20_129_1_, aduser5_.comments as comment21_129_1_, aduser5_.phone as phone22_129_1_, aduser5_.phone2 as phone23_129_1_, aduser5_.fax as fax24_129_1_, aduser5_.lastcontact as lastcon25_129_1_, aduser5_.lastresult as lastres26_129_1_, aduser5_.birthday as birthda27_129_1_, aduser5_.ad_orgtrx_id as ad_orgt28_129_1_, aduser5_.firstname as firstna29_129_1_, aduser5_.lastname as lastnam30_129_1_, aduser5_.username as usernam31_129_1_, aduser5_.default_ad_client_id as default32_129_1_, aduser5_.default_ad_language as default33_129_1_, aduser5_.default_ad_org_id as default34_129_1_, aduser5_.default_ad_role_id as default35_129_1_, aduser5_.default_m_warehouse_id as default36_129_1_, aduser5_.islocked as islocke37_129_1_, aduser5_.ad_image_id as ad_imag38_129_1_, aduser5_.grant_portal_access as grant_p39_129_1_, aduser5_.lastpasswordupdate as lastpas40_129_1_, aduser5_.isexpiredpassword as isexpir41_129_1_, aduser5_.em_obpos_default_pos_role as em_obpo42_129_1_, aduser5_.commercialauth as commerc43_129_1_, aduser5_.viasms as viasms44_129_1_, aduser5_.viaemail as viaemai45_129_1_, aduser5_.em_pruti_isbillingcontact as em_prut46_129_1_, aduser5_.em_pruti_isordercontact as em_prut47_129_1_, aduser5_.em_smfsws_default_ws_role_id as em_smfs48_129_1_, aduser5_.em_pruti_ispurchaseordcontact as em_prut49_129_1_, aduser5_.em_pruti_isshipmentcontact as em_prut50_129_1_, aduser5_.em_primpa_iscontact as em_prim51_129_1_, aduser5_.em_obretco_default_pos_contact as em_obre52_129_1_, aduser6_.ad_client_id as ad_clien2_129_2_, aduser6_.ad_org_id as ad_org_i3_129_2_, aduser6_.isactive as isactive4_129_2_, aduser6_.created as created5_129_2_, aduser6_.createdby as createdb6_129_2_, aduser6_.updated as updated7_129_2_, aduser6_.updatedby as updatedb8_129_2_, aduser6_.name as name9_129_2_, aduser6_.description as descrip10_129_2_, aduser6_.password as passwor11_129_2_, aduser6_.email as email12_129_2_, aduser6_.supervisor_id as supervi13_129_2_, aduser6_.c_bpartner_id as c_bpart14_129_2_, aduser6_.processing as process15_129_2_, aduser6_.emailuser as emailus16_129_2_, aduser6_.emailuserpw as emailus17_129_2_, aduser6_.c_bpartner_location_id as c_bpart18_129_2_, aduser6_.c_greeting_id as c_greet19_129_2_, aduser6_.title as title20_129_2_, aduser6_.comments as comment21_129_2_, aduser6_.phone as phone22_129_2_, aduser6_.phone2 as phone23_129_2_, aduser6_.fax as fax24_129_2_, aduser6_.lastcontact as lastcon25_129_2_, aduser6_.lastresult as lastres26_129_2_, aduser6_.birthday as birthda27_129_2_, aduser6_.ad_orgtrx_id as ad_orgt28_129_2_, aduser6_.firstname as firstna29_129_2_, aduser6_.lastname as lastnam30_129_2_, aduser6_.username as usernam31_129_2_, aduser6_.default_ad_client_id as default32_129_2_, aduser6_.default_ad_language as default33_129_2_, aduser6_.default_ad_org_id as default34_129_2_, aduser6_.default_ad_role_id as default35_129_2_, aduser6_.default_m_warehouse_id as default36_129_2_, aduser6_.islocked as islocke37_129_2_, aduser6_.ad_image_id as ad_imag38_129_2_, aduser6_.grant_portal_access as grant_p39_129_2_, aduser6_.lastpasswordupdate as lastpas40_129_2_, aduser6_.isexpiredpassword as isexpir41_129_2_, aduser6_.em_obpos_default_pos_role as em_obpo42_129_2_, aduser6_.commercialauth as commerc43_129_2_, aduser6_.viasms as viasms44_129_2_, aduser6_.viaemail as viaemai45_129_2_, aduser6_.em_pruti_isbillingcontact as em_prut46_129_2_, aduser6_.em_pruti_isordercontact as em_prut47_129_2_, aduser6_.em_smfsws_default_ws_role_id as em_smfs48_129_2_, aduser6_.em_pruti_ispurchaseordcontact as em_prut49_129_2_, aduser6_.em_pruti_isshipmentcontact as em_prut50_129_2_, aduser6_.em_primpa_iscontact as em_prim51_129_2_, aduser6_.em_obretco_default_pos_contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join c_order order1_ on invoicecan0_.c_order_id = order1_.c_order_id inner join ad_org organizati2_ on invoicecan0_.ad_org_id = organizati2_.ad_org_id inner join c_bpartner businesspa3_ on invoicecan0_.c_bpartner_id = businesspa3_.c_bpartner_id inner join c_doctype documentty4_ on invoicecan0_.c_doctype_id = documentty4_.c_doctype_id inner join ad_user aduser5_ on invoicecan0_.createdby = aduser5_.ad_user_id inner join ad_user aduser6_ on invoicecan0_.updatedby = aduser6_.ad_user_id where (invoicecan0_.term = ? and invoicecan0_.qtydelivered <> ? and (? = ? and (exists ( select ? from c_orderline orderline7_ where orderline7_.c_order_id = order1_.c_order_id and orderline7_.qtydelivered - orderline7_.qtyinvoiced <> ?)) or ? = ?) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline8_ where orderline8_.c_order_id = order1_.c_order_id and orderline8_.qtyordered - orderline8_.qtyinvoiced <> ?)) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline9_ where orderline9_.c_order_id = order1_.c_order_id and orderline9_.qtydelivered <> ? and orderline9_.qtydelivered <> orderline9_.qtyinvoiced)) or invoicecan0_.term = ? and invoicecan0_.qtyordered = invoicecan0_.qtydelivered) and (invoicecan0_.ad_client_id in (...)) and (invoicecan0_.ad_org_id in (...)) and (upper(businesspa3_.name) like upper(?) escape ?) order by organizati2_.name, businesspa3_.name, invoicecan0_.dateordered limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 16 12 4 8s243ms 2s60ms 17 5 10s382ms 2s76ms [ User: tad - Total duration: 18s626ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 18s626ms - Times executed: 9 ]
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (upper(businesspa3_.Name) like upper('%AJUN%') escape '|') order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:32:52 Duration: 2s198ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (upper(businesspa3_.Name) like upper('%A%') escape '|') order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:32:51 Duration: 2s137ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (upper(businesspa3_.Name) like upper('%talh%') escape '|') order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 12:45:30 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 18s128ms 15 1s88ms 1s957ms 1s208ms select * from ( select o.c_order_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, o.c_order_id, ?) || ? || sum(ol.linenetamt) || ? || o.totallines as description, ? as isactive, o.ad_org_id as ad_org_id, o.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, o.c_order_id, ?) as record_id from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) 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 #6
Day Hour Count Duration Avg duration Jul 16 07 1 1s263ms 1s263ms 08 1 1s129ms 1s129ms 09 1 1s171ms 1s171ms 10 1 1s110ms 1s110ms 11 1 1s194ms 1s194ms 12 1 1s97ms 1s97ms 13 1 1s196ms 1s196ms 14 1 1s957ms 1s957ms 15 1 1s135ms 1s135ms 16 1 1s191ms 1s191ms 17 1 1s174ms 1s174ms 18 1 1s88ms 1s88ms 19 1 1s157ms 1s157ms 20 1 1s89ms 1s89ms 21 1 1s171ms 1s171ms [ User: tad - Total duration: 18s128ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 18s128ms - Times executed: 15 ]
-
SELECT * FROM ( select o.c_order_id AS REFERENCEKEY_ID, '0' AS AD_ROLE_ID, NULL AS AD_USER_ID, 'Check totals of the next order ' || AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') || ' Lines: ' || sum(ol.linenetamt) || ' , Order: ' || o.totallines as DESCRIPTION, 'Y' AS ISACTIVE, o.AD_ORG_ID AS AD_ORG_ID, o.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, '0' AS CREATEDBY, now() AS UPDATED, '0' AS UPDATEDBY, AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') AS RECORD_ID from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '92F0537DB3A4485E95386FF56E727C80' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 14:00:01 Duration: 1s957ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select o.c_order_id AS REFERENCEKEY_ID, '0' AS AD_ROLE_ID, NULL AS AD_USER_ID, 'Check totals of the next order ' || AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') || ' Lines: ' || sum(ol.linenetamt) || ' , Order: ' || o.totallines as DESCRIPTION, 'Y' AS ISACTIVE, o.AD_ORG_ID AS AD_ORG_ID, o.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, '0' AS CREATEDBY, now() AS UPDATED, '0' AS UPDATEDBY, AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') AS RECORD_ID from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '92F0537DB3A4485E95386FF56E727C80' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 07:00:01 Duration: 1s263ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select o.c_order_id AS REFERENCEKEY_ID, '0' AS AD_ROLE_ID, NULL AS AD_USER_ID, 'Check totals of the next order ' || AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') || ' Lines: ' || sum(ol.linenetamt) || ' , Order: ' || o.totallines as DESCRIPTION, 'Y' AS ISACTIVE, o.AD_ORG_ID AS AD_ORG_ID, o.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, '0' AS CREATEDBY, now() AS UPDATED, '0' AS UPDATEDBY, AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') AS RECORD_ID from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '92F0537DB3A4485E95386FF56E727C80' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 13:00:01 Duration: 1s196ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 14s743ms 7 2s35ms 2s156ms 2s106ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 16 10 7 14s743ms 2s106ms [ User: tad - Total duration: 14s743ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 14s743ms - Times executed: 7 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/379%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:54 Duration: 2s156ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', '46B3AAC3A06B4ED793016C4E5C54E704', '7037B0EC9AA9481E92BB79013794D122', '9548EA89B074486593E4DB6ACF8C1F7C', 'D154E2095B75489AA5779DB1C1B1EA53', 'E425E7CD846B4FDF9E6488B94D9EF109', 'F3CF3A9446AF497EBF31A19599BA946F') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%C3580%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%46B3AAC3A06B4ED793016C4E5C54E704%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%7037B0EC9AA9481E92BB79013794D122%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%9548EA89B074486593E4DB6ACF8C1F7C%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D154E2095B75489AA5779DB1C1B1EA53%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E425E7CD846B4FDF9E6488B94D9EF109%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F3CF3A9446AF497EBF31A19599BA946F%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:57 Duration: 2s128ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', '46B3AAC3A06B4ED793016C4E5C54E704', '7037B0EC9AA9481E92BB79013794D122', '9548EA89B074486593E4DB6ACF8C1F7C', 'D154E2095B75489AA5779DB1C1B1EA53', 'E425E7CD846B4FDF9E6488B94D9EF109', 'F3CF3A9446AF497EBF31A19599BA946F') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%C26/3580%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%46B3AAC3A06B4ED793016C4E5C54E704%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%7037B0EC9AA9481E92BB79013794D122%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%9548EA89B074486593E4DB6ACF8C1F7C%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D154E2095B75489AA5779DB1C1B1EA53%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E425E7CD846B4FDF9E6488B94D9EF109%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F3CF3A9446AF497EBF31A19599BA946F%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:59 Duration: 2s123ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 14s40ms 12 1s2ms 2s315ms 1s170ms select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 16 08 1 1s517ms 1s517ms 10 6 6s139ms 1s23ms 13 1 2s315ms 2s315ms 14 4 4s67ms 1s16ms [ User: tad - Total duration: 14s40ms - Times executed: 12 ]
[ Application: openbravo - Total duration: 14s40ms - Times executed: 12 ]
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = '6BFB63A78EB74D33BCF96CA70B345A32';
Date: 2026-07-16 13:48:18 Duration: 2s315ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = 'A0EA6676758A431D97D0EF94B42A67DF';
Date: 2026-07-16 08:06:53 Duration: 1s517ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = '7030BD9DBC1F4E9DB35DA9639DAE294A';
Date: 2026-07-16 10:50:16 Duration: 1s67ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 12s347ms 4 2s167ms 4s884ms 3s86ms insert into fact_acct (fact_acct_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_acctschema_id, account_id, datetrx, dateacct, c_period_id, ad_table_id, record_id, postingtype, c_currency_id, amtsourcedr, amtsourcecr, amtacctdr, amtacctcr, fact_acct_group_id, seqno, factaccttype, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, description, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id) select get_uuid (), ?, ?, ?, now(), ?, now(), ?, c_acctschema_id, account_id, to_date(?), to_date(?), ?, ?, ?, ?, ?, ( case sign(sum(amtacctcr) - sum(amtacctdr)) when ? then ? else (sum(amtacctcr) - sum(amtacctdr)) end), ( case sign(sum(amtacctdr) - sum(amtacctcr)) when ? then ? else (sum(amtacctdr) - sum(amtacctcr)) end), ( case sign(sum(amtacctcr) - sum(amtacctdr)) when ? then ? else (sum(amtacctcr) - sum(amtacctdr)) end), ( case sign(sum(amtacctdr) - sum(amtacctcr)) when ? then ? else (sum(amtacctdr) - sum(amtacctcr)) end), ?, to_number(?), ?, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, ?, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id from fact_acct where exists ( select ? from c_period p where p.c_year_id = ? and p.c_period_id = fact_acct.c_period_id) and exists ( select ? from c_elementvalue where c_elementvalue.accounttype in (...) and account_id = c_elementvalue_id) and ad_org_id = ? and c_acctschema_id = ? and (factaccttype <> ? or fact_acct_group_id = ?) group by account_id, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id, c_acctschema_id having sum(amtacctdr) - sum(amtacctcr) <> ? order by acctvalue;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 13 4 12s347ms 3s86ms [ User: tad - Total duration: 12s347ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 12s347ms - Times executed: 4 ]
-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCEDR, AMTSOURCECR, AMTACCTDR, AMTACCTCR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), 'FF80818133B7413E0133B7164D6A0002', 'FF80818133B7413E0133B71974AD28C6', 'Y', now(), 'AB6C0034255E4370A86E2E985B7BD43D', now(), 'AB6C0034255E4370A86E2E985B7BD43D', C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date('31-12-2025'), to_date('31-12-2025'), 'FE11860E104540C885746AD9D3270D31', '145', 'FE11860E104540C885746AD9D3270D31', 'A', '102', ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), '690F1146CD504A708CB12DEB0BFF370C', to_number('20'), 'R', ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, 'Entrada de regularización', C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = '6E291C21988F4D90AC2C4FD9E7DDE383' AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('R') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = 'FF80818133B7413E0133B71974AD28C6' AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = NULL) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:30 Duration: 4s884ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCEDR, AMTSOURCECR, AMTACCTDR, AMTACCTCR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), 'FF80818133B7413E0133B7164D6A0002', 'FF80818133B7413E0133B71974AD28C6', 'Y', now(), 'AB6C0034255E4370A86E2E985B7BD43D', now(), 'AB6C0034255E4370A86E2E985B7BD43D', C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date('31-12-2025'), to_date('31-12-2025'), 'FE11860E104540C885746AD9D3270D31', '145', 'FE11860E104540C885746AD9D3270D31', 'A', '102', ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), '690F1146CD504A708CB12DEB0BFF370C', to_number('10'), 'R', ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, 'Entrada de regularización', C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = '6E291C21988F4D90AC2C4FD9E7DDE383' AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('E') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = 'FF80818133B7413E0133B71974AD28C6' AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = NULL) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:25 Duration: 2s747ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCEDR, AMTSOURCECR, AMTACCTDR, AMTACCTCR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), 'FF80818133B7413E0133B7164D6A0002', 'FF80818133B7413E0133B71974AD28C6', 'Y', now(), 'AB6C0034255E4370A86E2E985B7BD43D', now(), 'AB6C0034255E4370A86E2E985B7BD43D', C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date('31-12-2025'), to_date('31-12-2025'), 'FE11860E104540C885746AD9D3270D31', '145', 'FE11860E104540C885746AD9D3270D31', 'A', '102', ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), '1FD4747E10A74BF798CF3D8517ABAB0C', to_number('20'), 'C', ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, 'Cerrando entrada', C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = '6E291C21988F4D90AC2C4FD9E7DDE383' AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('A') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = 'FF80818133B7413E0133B71974AD28C6' AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = NULL) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:32 Duration: 2s549ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 9s841ms 5 1s920ms 2s29ms 1s968ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ? offset ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 16 10 5 9s841ms 1s968ms [ User: tad - Total duration: 9s841ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 9s841ms - Times executed: 5 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '400';
Date: 2026-07-16 10:48:42 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-16 10:48:35 Duration: 1s999ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '500';
Date: 2026-07-16 10:48:45 Duration: 1s954ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 9s334ms 4 2s3ms 3s221ms 2s333ms select a.id, ev.value as account_id, coalesce(ev_trl.name, ev.name) as name, a.initialamt as saldo_inicial, a.amtacctcr, a.amtacctdr, a.initialamt + a.amtacctdr - a.amtacctcr as saldo_final, a.groupbyid, case ad_column_identifier (?, groupbyid, to_char(?)) when ? then ? else ad_column_identifier (?, groupbyid, to_char(?)) end as groupbyname from ( select sum( case when (dateacct < to_date(?) or (dateacct = to_date(?) and f.factaccttype = ?)) then f.amtacctdr - f.amtacctcr else ? end) as initialamt, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctdr else ? end) as amtacctdr, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctcr else ? end) as amtacctcr, f.account_id as id, to_char(?) as groupbyid from fact_acct f where f.ad_org_id in (...) and f.ad_client_id in (...) and f.ad_org_id in (...) and dateacct < to_date(?) and ? = ? and f.c_acctschema_id = ? and f.isactive = ? group by f.account_id) a left join c_elementvalue ev on a.id = ev.c_elementvalue_id left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? where ev.elementlevel = ? and ? = ? and (a.initialamt <> ? or a.amtacctcr <> ? or a.amtacctdr <> ?) order by ev.value, ev.name, id, groupbyname;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 13 4 9s334ms 2s333ms [ User: tad - Total duration: 9s334ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 9s334ms - Times executed: 4 ]
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2025') or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND DATEACCT < TO_DATE('01-04-2025') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-16 13:09:19 Duration: 3s221ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2025') or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND DATEACCT < TO_DATE('01-01-2026') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-16 13:11:25 Duration: 2s87ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2025') or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND DATEACCT < TO_DATE('01-07-2025') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-16 13:10:21 Duration: 2s21ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 6s901ms 4 1s24ms 3s493ms 1s725ms select * from ( select distinct ad_column_identifier (?, fin_payment_schedule.c_invoice_id, ?) as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = ? group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, ?)) order by ?) 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 #12
Day Hour Count Duration Avg duration Jul 16 14 1 1s214ms 1s214ms 15 1 1s168ms 1s168ms 16 1 3s493ms 3s493ms 17 1 1s24ms 1s24ms [ User: tad - Total duration: 6s901ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 6s901ms - Times executed: 4 ]
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 16:00:05 Duration: 3s493ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 14:00:03 Duration: 1s214ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 15:00:02 Duration: 1s168ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 6s333ms 5 1s240ms 1s300ms 1s266ms select product1_.value as col_0_0_, product1_.m_product_id as col_1_0_, pricingpri2_.m_pricelist_version_id as col_2_0_, pricingpri2_.name as col_3_0_, currency4_.c_currency_id as col_4_0_, pricingpro0_.pricelimit as col_5_0_, product1_.name as col_6_0_, product1_.c_uom_id as col_7_0_, pricingpro0_.pricestd as col_8_0_, pricingpro0_.pricelist as col_9_0_, pricingpri3_.issopricelist as col_10_0_, product1_.characteristic_desc as col_11_0_, product5_.name as col_12_0_, product1_.upc as col_13_0_, pricingpri2_.m_pricelist_version_id as m_pricel1_551_0_, uom6_.c_uom_id as c_uom_id1_324_1_, pricingpri2_.ad_client_id as ad_clien2_551_0_, pricingpri2_.ad_org_id as ad_org_i3_551_0_, pricingpri2_.isactive as isactive4_551_0_, pricingpri2_.created as created5_551_0_, pricingpri2_.createdby as createdb6_551_0_, pricingpri2_.updated as updated7_551_0_, pricingpri2_.updatedby as updatedb8_551_0_, pricingpri2_.name as name9_551_0_, pricingpri2_.description as descrip10_551_0_, pricingpri2_.m_pricelist_id as m_price11_551_0_, pricingpri2_.m_discountschema_id as m_disco12_551_0_, pricingpri2_.validfrom as validfr13_551_0_, pricingpri2_.proccreate as proccre14_551_0_, pricingpri2_.m_pricelist_version_base_id as m_price15_551_0_, pricingpri2_.m_pricelist_version_generate as m_price16_551_0_, pricingpri2_.em_pruti_import_prices as em_prut17_551_0_, uom6_.ad_client_id as ad_clien2_324_1_, uom6_.ad_org_id as ad_org_i3_324_1_, uom6_.isactive as isactive4_324_1_, uom6_.created as created5_324_1_, uom6_.updated as updated6_324_1_, uom6_.createdby as createdb7_324_1_, uom6_.updatedby as updatedb8_324_1_, uom6_.x12de355 as x9_324_1_, uom6_.uomsymbol as uomsymb10_324_1_, uom6_.name as name11_324_1_, uom6_.description as descrip12_324_1_, uom6_.stdprecision as stdprec13_324_1_, uom6_.costingprecision as costing14_324_1_, uom6_.isdefault as isdefau15_324_1_, uom6_.breakdown as breakdo16_324_1_, uom6_.uom_type as uom_typ17_324_1_, uom6_.useinproduction as useinpr18_324_1_ from m_productprice pricingpro0_ inner join m_product product1_ on pricingpro0_.m_product_id = product1_.m_product_id inner join m_pricelist_version pricingpri2_ on pricingpro0_.m_pricelist_version_id = pricingpri2_.m_pricelist_version_id inner join m_pricelist pricingpri3_ on pricingpri2_.m_pricelist_id = pricingpri3_.m_pricelist_id left outer join c_currency currency4_ on pricingpri3_.c_currency_id = currency4_.c_currency_id left outer join m_product product5_ on product1_.generic_product_id = product5_.m_product_id inner join c_uom uom6_ on product1_.c_uom_id = uom6_.c_uom_id where product1_.isgeneric = ? and product1_.isactive = ? and pricingpri2_.isactive = ? and (product1_.ad_client_id in (...)) and (product1_.ad_org_id in (...)) and pricingpri3_.issopricelist = ? and currency4_.c_currency_id = ? and (upper(product1_.upc) like upper(?) or upper(product1_.value) like upper(?) or upper(product1_.name) like upper(?)) and (upper(pricingpri2_.name) like upper(?)) and pricingpri2_.m_pricelist_version_id = ? order by ? limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 16 09 2 2s561ms 1s280ms 10 3 3s771ms 1s257ms [ User: tad - Total duration: 6s333ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 6s333ms - Times executed: 5 ]
-
select product1_.Value as col_0_0_, product1_.M_Product_ID as col_1_0_, pricingpri2_.M_PriceList_Version_ID as col_2_0_, pricingpri2_.Name as col_3_0_, currency4_.C_Currency_ID as col_4_0_, pricingpro0_.PriceLimit as col_5_0_, product1_.Name as col_6_0_, product1_.C_UOM_ID as col_7_0_, pricingpro0_.PriceStd as col_8_0_, pricingpro0_.PriceList as col_9_0_, pricingpri3_.IsSOPriceList as col_10_0_, product1_.Characteristic_Desc as col_11_0_, product5_.Name as col_12_0_, product1_.UPC as col_13_0_, pricingpri2_.M_PriceList_Version_ID as m_pricel1_551_0_, uom6_.C_UOM_ID as c_uom_id1_324_1_, pricingpri2_.AD_Client_ID as ad_clien2_551_0_, pricingpri2_.AD_Org_ID as ad_org_i3_551_0_, pricingpri2_.IsActive as isactive4_551_0_, pricingpri2_.Created as created5_551_0_, pricingpri2_.CreatedBy as createdb6_551_0_, pricingpri2_.Updated as updated7_551_0_, pricingpri2_.UpdatedBy as updatedb8_551_0_, pricingpri2_.Name as name9_551_0_, pricingpri2_.Description as descrip10_551_0_, pricingpri2_.M_PriceList_ID as m_price11_551_0_, pricingpri2_.M_DiscountSchema_ID as m_disco12_551_0_, pricingpri2_.ValidFrom as validfr13_551_0_, pricingpri2_.ProcCreate as proccre14_551_0_, pricingpri2_.M_Pricelist_Version_Base_ID as m_price15_551_0_, pricingpri2_.M_Pricelist_Version_Generate as m_price16_551_0_, pricingpri2_.EM_Pruti_Import_Prices as em_prut17_551_0_, uom6_.AD_Client_ID as ad_clien2_324_1_, uom6_.AD_Org_ID as ad_org_i3_324_1_, uom6_.IsActive as isactive4_324_1_, uom6_.Created as created5_324_1_, uom6_.Updated as updated6_324_1_, uom6_.CreatedBy as createdb7_324_1_, uom6_.UpdatedBy as updatedb8_324_1_, uom6_.X12DE355 as x9_324_1_, uom6_.UOMSymbol as uomsymb10_324_1_, uom6_.Name as name11_324_1_, uom6_.Description as descrip12_324_1_, uom6_.StdPrecision as stdprec13_324_1_, uom6_.CostingPrecision as costing14_324_1_, uom6_.IsDefault as isdefau15_324_1_, uom6_.Breakdown as breakdo16_324_1_, uom6_.UOM_Type as uom_typ17_324_1_, uom6_.Useinproduction as useinpr18_324_1_ from M_ProductPrice pricingpro0_ inner join M_Product product1_ on pricingpro0_.M_Product_ID = product1_.M_Product_ID inner join M_PriceList_Version pricingpri2_ on pricingpro0_.M_PriceList_Version_ID = pricingpri2_.M_PriceList_Version_ID inner join M_PriceList pricingpri3_ on pricingpri2_.M_PriceList_ID = pricingpri3_.M_PriceList_ID left outer join C_Currency currency4_ on pricingpri3_.C_Currency_ID = currency4_.C_Currency_ID left outer join M_Product product5_ on product1_.Generic_Product_ID = product5_.M_Product_ID inner join C_UOM uom6_ on product1_.C_UOM_ID = uom6_.C_UOM_ID where product1_.IsGeneric = 'N' and product1_.IsActive = 'Y' and pricingpri2_.IsActive = 'Y' and (product1_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (product1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and pricingpri3_.IsSOPriceList = 'Y' and currency4_.C_Currency_ID = '102' and (upper(product1_.UPC) like upper('%HP%SUPE%') or upper(product1_.Value) like upper('%HP%SUPE%') or upper(product1_.Name) like upper('%HP%SUPE%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-16 09:41:00 Duration: 1s300ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select product1_.Value as col_0_0_, product1_.M_Product_ID as col_1_0_, pricingpri2_.M_PriceList_Version_ID as col_2_0_, pricingpri2_.Name as col_3_0_, currency4_.C_Currency_ID as col_4_0_, pricingpro0_.PriceLimit as col_5_0_, product1_.Name as col_6_0_, product1_.C_UOM_ID as col_7_0_, pricingpro0_.PriceStd as col_8_0_, pricingpro0_.PriceList as col_9_0_, pricingpri3_.IsSOPriceList as col_10_0_, product1_.Characteristic_Desc as col_11_0_, product5_.Name as col_12_0_, product1_.UPC as col_13_0_, pricingpri2_.M_PriceList_Version_ID as m_pricel1_551_0_, uom6_.C_UOM_ID as c_uom_id1_324_1_, pricingpri2_.AD_Client_ID as ad_clien2_551_0_, pricingpri2_.AD_Org_ID as ad_org_i3_551_0_, pricingpri2_.IsActive as isactive4_551_0_, pricingpri2_.Created as created5_551_0_, pricingpri2_.CreatedBy as createdb6_551_0_, pricingpri2_.Updated as updated7_551_0_, pricingpri2_.UpdatedBy as updatedb8_551_0_, pricingpri2_.Name as name9_551_0_, pricingpri2_.Description as descrip10_551_0_, pricingpri2_.M_PriceList_ID as m_price11_551_0_, pricingpri2_.M_DiscountSchema_ID as m_disco12_551_0_, pricingpri2_.ValidFrom as validfr13_551_0_, pricingpri2_.ProcCreate as proccre14_551_0_, pricingpri2_.M_Pricelist_Version_Base_ID as m_price15_551_0_, pricingpri2_.M_Pricelist_Version_Generate as m_price16_551_0_, pricingpri2_.EM_Pruti_Import_Prices as em_prut17_551_0_, uom6_.AD_Client_ID as ad_clien2_324_1_, uom6_.AD_Org_ID as ad_org_i3_324_1_, uom6_.IsActive as isactive4_324_1_, uom6_.Created as created5_324_1_, uom6_.Updated as updated6_324_1_, uom6_.CreatedBy as createdb7_324_1_, uom6_.UpdatedBy as updatedb8_324_1_, uom6_.X12DE355 as x9_324_1_, uom6_.UOMSymbol as uomsymb10_324_1_, uom6_.Name as name11_324_1_, uom6_.Description as descrip12_324_1_, uom6_.StdPrecision as stdprec13_324_1_, uom6_.CostingPrecision as costing14_324_1_, uom6_.IsDefault as isdefau15_324_1_, uom6_.Breakdown as breakdo16_324_1_, uom6_.UOM_Type as uom_typ17_324_1_, uom6_.Useinproduction as useinpr18_324_1_ from M_ProductPrice pricingpro0_ inner join M_Product product1_ on pricingpro0_.M_Product_ID = product1_.M_Product_ID inner join M_PriceList_Version pricingpri2_ on pricingpro0_.M_PriceList_Version_ID = pricingpri2_.M_PriceList_Version_ID inner join M_PriceList pricingpri3_ on pricingpri2_.M_PriceList_ID = pricingpri3_.M_PriceList_ID left outer join C_Currency currency4_ on pricingpri3_.C_Currency_ID = currency4_.C_Currency_ID left outer join M_Product product5_ on product1_.Generic_Product_ID = product5_.M_Product_ID inner join C_UOM uom6_ on product1_.C_UOM_ID = uom6_.C_UOM_ID where product1_.IsGeneric = 'N' and product1_.IsActive = 'Y' and pricingpri2_.IsActive = 'Y' and (product1_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (product1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and pricingpri3_.IsSOPriceList = 'Y' and currency4_.C_Currency_ID = '102' and (upper(product1_.UPC) like upper('%ATE605%') or upper(product1_.Value) like upper('%ATE605%') or upper(product1_.Name) like upper('%ATE605%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-16 10:44:13 Duration: 1s280ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select product1_.Value as col_0_0_, product1_.M_Product_ID as col_1_0_, pricingpri2_.M_PriceList_Version_ID as col_2_0_, pricingpri2_.Name as col_3_0_, currency4_.C_Currency_ID as col_4_0_, pricingpro0_.PriceLimit as col_5_0_, product1_.Name as col_6_0_, product1_.C_UOM_ID as col_7_0_, pricingpro0_.PriceStd as col_8_0_, pricingpro0_.PriceList as col_9_0_, pricingpri3_.IsSOPriceList as col_10_0_, product1_.Characteristic_Desc as col_11_0_, product5_.Name as col_12_0_, product1_.UPC as col_13_0_, pricingpri2_.M_PriceList_Version_ID as m_pricel1_551_0_, uom6_.C_UOM_ID as c_uom_id1_324_1_, pricingpri2_.AD_Client_ID as ad_clien2_551_0_, pricingpri2_.AD_Org_ID as ad_org_i3_551_0_, pricingpri2_.IsActive as isactive4_551_0_, pricingpri2_.Created as created5_551_0_, pricingpri2_.CreatedBy as createdb6_551_0_, pricingpri2_.Updated as updated7_551_0_, pricingpri2_.UpdatedBy as updatedb8_551_0_, pricingpri2_.Name as name9_551_0_, pricingpri2_.Description as descrip10_551_0_, pricingpri2_.M_PriceList_ID as m_price11_551_0_, pricingpri2_.M_DiscountSchema_ID as m_disco12_551_0_, pricingpri2_.ValidFrom as validfr13_551_0_, pricingpri2_.ProcCreate as proccre14_551_0_, pricingpri2_.M_Pricelist_Version_Base_ID as m_price15_551_0_, pricingpri2_.M_Pricelist_Version_Generate as m_price16_551_0_, pricingpri2_.EM_Pruti_Import_Prices as em_prut17_551_0_, uom6_.AD_Client_ID as ad_clien2_324_1_, uom6_.AD_Org_ID as ad_org_i3_324_1_, uom6_.IsActive as isactive4_324_1_, uom6_.Created as created5_324_1_, uom6_.Updated as updated6_324_1_, uom6_.CreatedBy as createdb7_324_1_, uom6_.UpdatedBy as updatedb8_324_1_, uom6_.X12DE355 as x9_324_1_, uom6_.UOMSymbol as uomsymb10_324_1_, uom6_.Name as name11_324_1_, uom6_.Description as descrip12_324_1_, uom6_.StdPrecision as stdprec13_324_1_, uom6_.CostingPrecision as costing14_324_1_, uom6_.IsDefault as isdefau15_324_1_, uom6_.Breakdown as breakdo16_324_1_, uom6_.UOM_Type as uom_typ17_324_1_, uom6_.Useinproduction as useinpr18_324_1_ from M_ProductPrice pricingpro0_ inner join M_Product product1_ on pricingpro0_.M_Product_ID = product1_.M_Product_ID inner join M_PriceList_Version pricingpri2_ on pricingpro0_.M_PriceList_Version_ID = pricingpri2_.M_PriceList_Version_ID inner join M_PriceList pricingpri3_ on pricingpri2_.M_PriceList_ID = pricingpri3_.M_PriceList_ID left outer join C_Currency currency4_ on pricingpri3_.C_Currency_ID = currency4_.C_Currency_ID left outer join M_Product product5_ on product1_.Generic_Product_ID = product5_.M_Product_ID inner join C_UOM uom6_ on product1_.C_UOM_ID = uom6_.C_UOM_ID where product1_.IsGeneric = 'N' and product1_.IsActive = 'Y' and pricingpri2_.IsActive = 'Y' and (product1_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (product1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and pricingpri3_.IsSOPriceList = 'Y' and currency4_.C_Currency_ID = '102' and (upper(product1_.UPC) like upper('%HP%SUPER%%') or upper(product1_.Value) like upper('%HP%SUPER%%') or upper(product1_.Name) like upper('%HP%SUPER%%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-16 09:41:06 Duration: 1s260ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 6s305ms 3 2s80ms 2s114ms 2s101ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 16 10 3 6s305ms 2s101ms [ User: tad - Total duration: 6s305ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s305ms - Times executed: 3 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3586%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:29 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/35%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:28 Duration: 2s110ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/358%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:29 Duration: 2s80ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 6s267ms 3 2s29ms 2s136ms 2s89ms select invoicecan0_.c_order_id as col_0_0_, organizati2_.name as col_1_0_, invoicecan0_.c_doctype_id as col_2_0_, invoicecan0_.documentno as col_3_0_, businesspa3_.name as col_4_0_, invoicecan0_.dateordered as col_5_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end as col_6_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end as col_7_0_, invoicecan0_.term as col_8_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? then case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then ?.? else invoicecan0_.pendinglines end as col_9_0_, invoicecan0_.qtyordered as col_10_0_, invoicecan0_.qtydelivered as col_11_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end - ( case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end) as col_12_0_, invoicecan0_.amountlinesgross as col_13_0_, invoicecan0_.created as col_14_0_, invoicecan0_.createdby as col_15_0_, invoicecan0_.updated as col_16_0_, invoicecan0_.updatedby as col_17_0_, documentty4_.c_doctype_id as c_doctyp1_224_0_, aduser5_.ad_user_id as ad_user_1_129_1_, aduser6_.ad_user_id as ad_user_1_129_2_, documentty4_.ad_client_id as ad_clien2_224_0_, documentty4_.ad_org_id as ad_org_i3_224_0_, documentty4_.isactive as isactive4_224_0_, documentty4_.created as created5_224_0_, documentty4_.createdby as createdb6_224_0_, documentty4_.updated as updated7_224_0_, documentty4_.updatedby as updatedb8_224_0_, documentty4_.name as name9_224_0_, documentty4_.printname as printna10_224_0_, documentty4_.description as descrip11_224_0_, documentty4_.docbasetype as docbase12_224_0_, documentty4_.issotrx as issotrx13_224_0_, documentty4_.docsubtypeso as docsubt14_224_0_, documentty4_.c_doctypeshipment_id as c_docty15_224_0_, documentty4_.c_doctypeinvoice_id as c_docty16_224_0_, documentty4_.isdocnocontrolled as isdocno17_224_0_, documentty4_.docnosequence_id as docnose18_224_0_, documentty4_.gl_category_id as gl_cate19_224_0_, documentty4_.documentnote as documen20_224_0_, documentty4_.isdefault as isdefau21_224_0_, documentty4_.documentcopies as documen22_224_0_, documentty4_.ad_table_id as ad_tabl23_224_0_, documentty4_.orgfiltered as orgfilt24_224_0_, documentty4_.c_doctype_reversed_id as c_docty25_224_0_, documentty4_.em_intr_transaction_type as em_intr26_224_0_, documentty4_.isexpense as isexpen27_224_0_, documentty4_.em_intr_statistical_regime as em_intr28_224_0_, documentty4_.isreversal as isrever29_224_0_, documentty4_.isreturn as isretur30_224_0_, documentty4_.c_doctypeorder_id as c_docty31_224_0_, documentty4_.c_doctypesimpinvoice_id as c_docty32_224_0_, documentty4_.em_obwpl_useoutbound as em_obwp33_224_0_, documentty4_.em_prouti_c_doctypeorder_id as em_prou34_224_0_, documentty4_.c_doctypeaggrinvoice_id as c_docty35_224_0_, documentty4_.em_obwpl_isgroup as em_obwp36_224_0_, documentty4_.em_obwpl_generateshipment as em_obwp37_224_0_, documentty4_.em_tbai_ad_sequence_id as em_tbai38_224_0_, documentty4_.em_etvfac_inv_type as em_etvf39_224_0_, documentty4_.em_obwpl_shipmentdoctype_id as em_obwp40_224_0_, documentty4_.em_etvfac_verifac_desc as em_etvf41_224_0_, documentty4_.em_etvfac_external_ref as em_etvf42_224_0_, documentty4_.em_etvfac_simpinvart7273 as em_etvf43_224_0_, documentty4_.em_etvfac_invnoidart61d as em_etvf44_224_0_, documentty4_.em_prwss_is_ws_type as em_prws45_224_0_, documentty4_.em_etvfac_reverseinvtype as em_etvf46_224_0_, documentty4_.em_etsg_isrectificative as em_etsg47_224_0_, documentty4_.em_pruti_inforeport2 as em_prut48_224_0_, documentty4_.em_pruti_inforeport as em_prut49_224_0_, documentty4_.em_pruti_inforeport3 as em_prut50_224_0_, documentty4_.em_pruti_image_id as em_prut51_224_0_, documentty4_.em_pruti_image2_id as em_prut52_224_0_, documentty4_.em_pruti_email as em_prut53_224_0_, documentty4_.em_pruti_url as em_prut54_224_0_, documentty4_.em_pruti_phone as em_prut55_224_0_, documentty4_.em_pruti_phone2 as em_prut56_224_0_, documentty4_.em_pruti_fax as em_prut57_224_0_, aduser5_.ad_client_id as ad_clien2_129_1_, aduser5_.ad_org_id as ad_org_i3_129_1_, aduser5_.isactive as isactive4_129_1_, aduser5_.created as created5_129_1_, aduser5_.createdby as createdb6_129_1_, aduser5_.updated as updated7_129_1_, aduser5_.updatedby as updatedb8_129_1_, aduser5_.name as name9_129_1_, aduser5_.description as descrip10_129_1_, aduser5_.password as passwor11_129_1_, aduser5_.email as email12_129_1_, aduser5_.supervisor_id as supervi13_129_1_, aduser5_.c_bpartner_id as c_bpart14_129_1_, aduser5_.processing as process15_129_1_, aduser5_.emailuser as emailus16_129_1_, aduser5_.emailuserpw as emailus17_129_1_, aduser5_.c_bpartner_location_id as c_bpart18_129_1_, aduser5_.c_greeting_id as c_greet19_129_1_, aduser5_.title as title20_129_1_, aduser5_.comments as comment21_129_1_, aduser5_.phone as phone22_129_1_, aduser5_.phone2 as phone23_129_1_, aduser5_.fax as fax24_129_1_, aduser5_.lastcontact as lastcon25_129_1_, aduser5_.lastresult as lastres26_129_1_, aduser5_.birthday as birthda27_129_1_, aduser5_.ad_orgtrx_id as ad_orgt28_129_1_, aduser5_.firstname as firstna29_129_1_, aduser5_.lastname as lastnam30_129_1_, aduser5_.username as usernam31_129_1_, aduser5_.default_ad_client_id as default32_129_1_, aduser5_.default_ad_language as default33_129_1_, aduser5_.default_ad_org_id as default34_129_1_, aduser5_.default_ad_role_id as default35_129_1_, aduser5_.default_m_warehouse_id as default36_129_1_, aduser5_.islocked as islocke37_129_1_, aduser5_.ad_image_id as ad_imag38_129_1_, aduser5_.grant_portal_access as grant_p39_129_1_, aduser5_.lastpasswordupdate as lastpas40_129_1_, aduser5_.isexpiredpassword as isexpir41_129_1_, aduser5_.em_obpos_default_pos_role as em_obpo42_129_1_, aduser5_.commercialauth as commerc43_129_1_, aduser5_.viasms as viasms44_129_1_, aduser5_.viaemail as viaemai45_129_1_, aduser5_.em_pruti_isbillingcontact as em_prut46_129_1_, aduser5_.em_pruti_isordercontact as em_prut47_129_1_, aduser5_.em_smfsws_default_ws_role_id as em_smfs48_129_1_, aduser5_.em_pruti_ispurchaseordcontact as em_prut49_129_1_, aduser5_.em_pruti_isshipmentcontact as em_prut50_129_1_, aduser5_.em_primpa_iscontact as em_prim51_129_1_, aduser5_.em_obretco_default_pos_contact as em_obre52_129_1_, aduser6_.ad_client_id as ad_clien2_129_2_, aduser6_.ad_org_id as ad_org_i3_129_2_, aduser6_.isactive as isactive4_129_2_, aduser6_.created as created5_129_2_, aduser6_.createdby as createdb6_129_2_, aduser6_.updated as updated7_129_2_, aduser6_.updatedby as updatedb8_129_2_, aduser6_.name as name9_129_2_, aduser6_.description as descrip10_129_2_, aduser6_.password as passwor11_129_2_, aduser6_.email as email12_129_2_, aduser6_.supervisor_id as supervi13_129_2_, aduser6_.c_bpartner_id as c_bpart14_129_2_, aduser6_.processing as process15_129_2_, aduser6_.emailuser as emailus16_129_2_, aduser6_.emailuserpw as emailus17_129_2_, aduser6_.c_bpartner_location_id as c_bpart18_129_2_, aduser6_.c_greeting_id as c_greet19_129_2_, aduser6_.title as title20_129_2_, aduser6_.comments as comment21_129_2_, aduser6_.phone as phone22_129_2_, aduser6_.phone2 as phone23_129_2_, aduser6_.fax as fax24_129_2_, aduser6_.lastcontact as lastcon25_129_2_, aduser6_.lastresult as lastres26_129_2_, aduser6_.birthday as birthda27_129_2_, aduser6_.ad_orgtrx_id as ad_orgt28_129_2_, aduser6_.firstname as firstna29_129_2_, aduser6_.lastname as lastnam30_129_2_, aduser6_.username as usernam31_129_2_, aduser6_.default_ad_client_id as default32_129_2_, aduser6_.default_ad_language as default33_129_2_, aduser6_.default_ad_org_id as default34_129_2_, aduser6_.default_ad_role_id as default35_129_2_, aduser6_.default_m_warehouse_id as default36_129_2_, aduser6_.islocked as islocke37_129_2_, aduser6_.ad_image_id as ad_imag38_129_2_, aduser6_.grant_portal_access as grant_p39_129_2_, aduser6_.lastpasswordupdate as lastpas40_129_2_, aduser6_.isexpiredpassword as isexpir41_129_2_, aduser6_.em_obpos_default_pos_role as em_obpo42_129_2_, aduser6_.commercialauth as commerc43_129_2_, aduser6_.viasms as viasms44_129_2_, aduser6_.viaemail as viaemai45_129_2_, aduser6_.em_pruti_isbillingcontact as em_prut46_129_2_, aduser6_.em_pruti_isordercontact as em_prut47_129_2_, aduser6_.em_smfsws_default_ws_role_id as em_smfs48_129_2_, aduser6_.em_pruti_ispurchaseordcontact as em_prut49_129_2_, aduser6_.em_pruti_isshipmentcontact as em_prut50_129_2_, aduser6_.em_primpa_iscontact as em_prim51_129_2_, aduser6_.em_obretco_default_pos_contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join c_order order1_ on invoicecan0_.c_order_id = order1_.c_order_id inner join ad_org organizati2_ on invoicecan0_.ad_org_id = organizati2_.ad_org_id inner join c_bpartner businesspa3_ on invoicecan0_.c_bpartner_id = businesspa3_.c_bpartner_id inner join c_doctype documentty4_ on invoicecan0_.c_doctype_id = documentty4_.c_doctype_id inner join ad_user aduser5_ on invoicecan0_.createdby = aduser5_.ad_user_id inner join ad_user aduser6_ on invoicecan0_.updatedby = aduser6_.ad_user_id where (invoicecan0_.term = ? and invoicecan0_.qtydelivered <> ? and (? = ? and (exists ( select ? from c_orderline orderline7_ where orderline7_.c_order_id = order1_.c_order_id and orderline7_.qtydelivered - orderline7_.qtyinvoiced <> ?)) or ? = ?) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline8_ where orderline8_.c_order_id = order1_.c_order_id and orderline8_.qtyordered - orderline8_.qtyinvoiced <> ?)) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline9_ where orderline9_.c_order_id = order1_.c_order_id and orderline9_.qtydelivered <> ? and orderline9_.qtydelivered <> orderline9_.qtyinvoiced)) or invoicecan0_.term = ? and invoicecan0_.qtyordered = invoicecan0_.qtydelivered) and (invoicecan0_.ad_client_id in (...)) and (invoicecan0_.ad_org_id in (...)) order by organizati2_.name, businesspa3_.name, invoicecan0_.dateordered limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 16 12 1 2s29ms 2s29ms 17 2 4s238ms 2s119ms [ User: tad - Total duration: 6s267ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s267ms - Times executed: 3 ]
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:06:50 Duration: 2s136ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:32:10 Duration: 2s101ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 12:45:26 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 5s307ms 5 1s22ms 1s90ms 1s61ms select businesspa0_.c_bpartner_id as c_bpartn1_189_, businesspa0_.ad_client_id as ad_clien2_189_, businesspa0_.ad_org_id as ad_org_i3_189_, businesspa0_.isactive as isactive4_189_, businesspa0_.created as created5_189_, businesspa0_.createdby as createdb6_189_, businesspa0_.updated as updated7_189_, businesspa0_.updatedby as updatedb8_189_, businesspa0_.value as value9_189_, businesspa0_.name as name10_189_, businesspa0_.name2 as name11_189_, businesspa0_.description as descrip12_189_, businesspa0_.issummary as issumma13_189_, businesspa0_.c_bp_group_id as c_bp_gr14_189_, businesspa0_.isonetime as isoneti15_189_, businesspa0_.isprospect as isprosp16_189_, businesspa0_.isvendor as isvendo17_189_, businesspa0_.iscustomer as iscusto18_189_, businesspa0_.isemployee as isemplo19_189_, businesspa0_.issalesrep as issales20_189_, businesspa0_.referenceno as referen21_189_, businesspa0_.duns as duns22_189_, businesspa0_.url as url23_189_, businesspa0_.ad_language as ad_lang24_189_, businesspa0_.taxid as taxid25_189_, businesspa0_.istaxexempt as istaxex26_189_, businesspa0_.c_invoiceschedule_id as c_invoi27_189_, businesspa0_.rating as rating28_189_, businesspa0_.salesvolume as salesvo29_189_, businesspa0_.numberemployees as numbere30_189_, businesspa0_.naics as naics31_189_, businesspa0_.firstsale as firstsa32_189_, businesspa0_.acqusitioncost as acqusit33_189_, businesspa0_.potentiallifetimevalue as potenti34_189_, businesspa0_.actuallifetimevalue as actuall35_189_, businesspa0_.shareofcustomer as shareof36_189_, businesspa0_.paymentrule as payment37_189_, businesspa0_.so_creditlimit as so_cred38_189_, businesspa0_.so_creditused as so_cred39_189_, businesspa0_.c_paymentterm_id as c_payme40_189_, businesspa0_.m_pricelist_id as m_price41_189_, businesspa0_.isdiscountprinted as isdisco42_189_, businesspa0_.so_description as so_desc43_189_, businesspa0_.poreference as porefer44_189_, businesspa0_.paymentrulepo as payment45_189_, businesspa0_.po_pricelist_id as po_pric46_189_, businesspa0_.po_paymentterm_id as po_paym47_189_, businesspa0_.documentcopies as documen48_189_, businesspa0_.c_greeting_id as c_greet49_189_, businesspa0_.invoicerule as invoice50_189_, businesspa0_.deliveryrule as deliver51_189_, businesspa0_.deliveryviarule as deliver52_189_, businesspa0_.salesrep_id as salesre53_189_, businesspa0_.bpartner_parent_id as bpartne54_189_, businesspa0_.socreditstatus as socredi55_189_, businesspa0_.ad_forced_org_id as ad_forc56_189_, businesspa0_.showpriceinorder as showpri57_189_, businesspa0_.invoicegrouping as invoice58_189_, businesspa0_.fixmonthday as fixmont59_189_, businesspa0_.fixmonthday2 as fixmont60_189_, businesspa0_.fixmonthday3 as fixmont61_189_, businesspa0_.isworker as isworke62_189_, businesspa0_.upc as upc63_189_, businesspa0_.c_salary_category_id as c_salar64_189_, businesspa0_.invoice_printformat as invoice65_189_, businesspa0_.last_days as last_da66_189_, businesspa0_.po_bankaccount_id as po_bank67_189_, businesspa0_.po_bp_taxcategory_id as po_bp_t68_189_, businesspa0_.po_fixmonthday as po_fixm69_189_, businesspa0_.po_fixmonthday2 as po_fixm70_189_, businesspa0_.po_fixmonthday3 as po_fixm71_189_, businesspa0_.so_bankaccount_id as so_bank72_189_, businesspa0_.so_bp_taxcategory_id as so_bp_t73_189_, businesspa0_.fiscalcode as fiscalc74_189_, businesspa0_.isofiscalcode as isofisc75_189_, businesspa0_.em_einv_einvoice as em_einv76_189_, businesspa0_.po_c_incoterms_id as po_c_in77_189_, businesspa0_.em_einv_format_id as em_einv78_189_, businesspa0_.so_c_incoterms_id as so_c_in79_189_, businesspa0_.em_einv_platform_id as em_einv80_189_, businesspa0_.fin_paymentmethod_id as fin_pay81_189_, businesspa0_.em_einv_email as em_einv82_189_, businesspa0_.po_paymentmethod_id as po_paym83_189_, businesspa0_.fin_financial_account_id as fin_fin84_189_, businesspa0_.em_einv_deliverymode as em_einv85_189_, businesspa0_.po_financial_account_id as po_fina86_189_, businesspa0_.customer_blocking as custome87_189_, businesspa0_.vendor_blocking as vendor_88_189_, businesspa0_.so_payment_blocking as so_paym89_189_, businesspa0_.po_payment_blocking as po_paym90_189_, businesspa0_.so_invoice_blocking as so_invo91_189_, businesspa0_.po_invoice_blocking as po_invo92_189_, businesspa0_.so_order_blocking as so_orde93_189_, businesspa0_.po_order_blocking as po_orde94_189_, businesspa0_.so_goods_blocking as so_good95_189_, businesspa0_.po_goods_blocking as po_good96_189_, businesspa0_.iscashvat as iscashv97_189_, businesspa0_.update_currency as update_98_189_, businesspa0_.bp_currency_id as bp_curr99_189_, businesspa0_.birthplace as birthp100_189_, businesspa0_.birthday as birthd101_189_, businesspa0_.is_customer_consent as is_cus102_189_, businesspa0_.em_obsepad_mandate_identifier as em_obs103_189_, businesspa0_.em_obsepad_mandate_date as em_obs104_189_, businesspa0_.is_customer_consent_papformat as is_cus105_189_, businesspa0_.em_aeatsii_rep_taxid as em_aea106_189_, businesspa0_.em_aeatsii_menor as em_aea107_189_, businesspa0_.em_pruti_addbp as em_pru108_189_, businesspa0_.em_prei_iseinvoice as em_pre109_189_, businesspa0_.em_prei_format_id as em_pre110_189_, businesspa0_.em_pruti_unlock_date as em_pru111_189_, businesspa0_.em_prei_platform_id as em_pre112_189_, businesspa0_.em_pruti_unlock_order_date as em_pru113_189_, businesspa0_.em_prei_send_method as em_pre114_189_, businesspa0_.em_pruti_annexes_bp_so_id as em_pru115_189_, businesspa0_.em_prei_email as em_pre116_189_, businesspa0_.em_pruti_annexes_bp_po_id as em_pru117_189_, businesspa0_.em_prei_need_expedient as em_pre118_189_, businesspa0_.em_aeatsii_defaultsiikey as em_aea119_189_, businesspa0_.em_aeatsii_siikeylist as em_aea120_189_, businesspa0_.em_tbai_issimplifiedinv as em_tba121_189_, businesspa0_.em_obwpl_bp_block_pickinglist as em_obw122_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru123_189_, businesspa0_.em_pruti_notsendinvoice as em_pru124_189_, businesspa0_.em_pruti_showpriceingoods as em_pru125_189_, businesspa0_.business_partner_type as busine126_189_, businesspa0_.em_obtik_tax_id_key as em_obt127_189_, businesspa0_.em_prma_update_bprecords as em_prm128_189_ from c_bpartner businesspa0_ where exists ( select ? from c_order order1_ left outer join c_bpartner businesspa2_ on order1_.c_bpartner_id = businesspa2_.c_bpartner_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.poreference), ?) || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?))) like upper(?) escape ?) and businesspa2_.c_bpartner_id = businesspa0_.c_bpartner_id and (order1_.ad_org_id in (...)) and (order1_.ad_client_id in (...))) order by businesspa0_.value, businesspa0_.name limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 16 08 2 2s145ms 1s72ms 12 2 2s71ms 1s35ms 17 1 1s90ms 1s90ms [ User: tad - Total duration: 5s307ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 5s307ms - Times executed: 5 ]
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.Is_Customer_Consent_PapFormat as is_cus105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Prei_Iseinvoice as em_pre109_189_, businesspa0_.EM_Prei_Format_ID as em_pre110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Prei_Platform_ID as em_pre112_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru113_189_, businesspa0_.EM_Prei_Send_Method as em_pre114_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru115_189_, businesspa0_.EM_Prei_Email as em_pre116_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru117_189_, businesspa0_.EM_Prei_Need_Expedient as em_pre118_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea119_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea120_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba121_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw122_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru123_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru124_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru125_189_, businesspa0_.business_partner_type as busine126_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt127_189_, businesspa0_.em_prma_update_BpRecords as em_prm128_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ left outer join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.POReference), '') || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%ILU%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (order1_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0'))) order by businesspa0_.Value, businesspa0_.Name limit '76';
Date: 2026-07-16 17:12:09 Duration: 1s90ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.Is_Customer_Consent_PapFormat as is_cus105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Prei_Iseinvoice as em_pre109_189_, businesspa0_.EM_Prei_Format_ID as em_pre110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Prei_Platform_ID as em_pre112_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru113_189_, businesspa0_.EM_Prei_Send_Method as em_pre114_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru115_189_, businesspa0_.EM_Prei_Email as em_pre116_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru117_189_, businesspa0_.EM_Prei_Need_Expedient as em_pre118_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea119_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea120_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba121_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw122_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru123_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru124_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru125_189_, businesspa0_.business_partner_type as busine126_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt127_189_, businesspa0_.em_prma_update_BpRecords as em_prm128_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ left outer join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.POReference), '') || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%fcc%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (order1_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0'))) order by businesspa0_.Value, businesspa0_.Name limit '76';
Date: 2026-07-16 08:25:37 Duration: 1s82ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.Is_Customer_Consent_PapFormat as is_cus105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Prei_Iseinvoice as em_pre109_189_, businesspa0_.EM_Prei_Format_ID as em_pre110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Prei_Platform_ID as em_pre112_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru113_189_, businesspa0_.EM_Prei_Send_Method as em_pre114_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru115_189_, businesspa0_.EM_Prei_Email as em_pre116_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru117_189_, businesspa0_.EM_Prei_Need_Expedient as em_pre118_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea119_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea120_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba121_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw122_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru123_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru124_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru125_189_, businesspa0_.business_partner_type as busine126_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt127_189_, businesspa0_.em_prma_update_BpRecords as em_prm128_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ left outer join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.POReference), '') || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%ses%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (order1_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0'))) order by businesspa0_.Value, businesspa0_.Name limit '76';
Date: 2026-07-16 08:24:00 Duration: 1s62ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 4s877ms 3 1s356ms 2s61ms 1s625ms select max(financialm0_.fact_acct_id) as col_0_0_, financialm0_.ad_client_id as col_1_0_, financialm4_.ad_org_id as col_2_0_, max(financialm0_.created) as col_3_0_, max(financialm0_.createdby) as col_4_0_, max(financialm0_.updated) as col_5_0_, max(financialm0_.updatedby) as col_6_0_, max(financialm0_.isactive) as col_7_0_, max(financialm0_.fact_acct_id) as col_8_0_, max(financialm0_.description) as col_9_0_, financialm4_.c_periodcontrol_id as col_10_0_, ( select financialm5_.name from c_acctschema financialm5_ where financialm0_.c_acctschema_id = financialm5_.c_acctschema_id) as col_11_0_, ( select financialm6_.value from c_elementvalue financialm6_ where financialm0_.account_id = financialm6_.c_elementvalue_id) as col_12_0_, financialm0_.factaccttype as col_13_0_, case when sum(financialm0_.amtacctdr - financialm0_.amtacctcr) > ? then sum(financialm0_.amtacctdr - financialm0_.amtacctcr) else ? end as col_14_0_, case when sum(financialm0_.amtacctcr - financialm0_.amtacctdr) > ? then sum(financialm0_.amtacctcr - financialm0_.amtacctdr) else ? end as col_15_0_ from fact_acct financialm0_ inner join c_period financialm1_ on financialm0_.c_period_id = financialm1_.c_period_id inner join ad_org organizati2_ on financialm0_.ad_org_id = organizati2_.ad_org_id cross join c_period financialm3_ inner join c_periodcontrol financialm4_ on financialm3_.c_period_id = financialm4_.c_period_id where (financialm0_.factaccttype in (...)) and financialm1_.c_year_id = financialm3_.c_year_id and financialm4_.ad_org_id = organizati2_.ad_periodcontrolallowed_org_id and (financialm0_.ad_client_id in (...)) and (financialm0_.ad_org_id in (...)) and financialm4_.c_periodcontrol_id = ? group by financialm0_.ad_client_id, financialm4_.c_periodcontrol_id, financialm0_.c_acctschema_id, financialm0_.account_id, financialm0_.factaccttype, financialm1_.c_year_id, financialm4_.ad_org_id having sum(financialm0_.amtacctcr - financialm0_.amtacctdr) <> ? order by financialm0_.factaccttype desc, col_14_0_ desc, col_15_0_ desc limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 16 13 3 4s877ms 1s625ms [ User: tad - Total duration: 4s877ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s877ms - Times executed: 3 ]
-
select max(financialm0_.Fact_Acct_ID) as col_0_0_, financialm0_.AD_Client_ID as col_1_0_, financialm4_.AD_Org_ID as col_2_0_, max(financialm0_.Created) as col_3_0_, max(financialm0_.CreatedBy) as col_4_0_, max(financialm0_.Updated) as col_5_0_, max(financialm0_.UpdatedBy) as col_6_0_, max(financialm0_.IsActive) as col_7_0_, max(financialm0_.Fact_Acct_ID) as col_8_0_, max(financialm0_.Description) as col_9_0_, financialm4_.C_PeriodControl_ID as col_10_0_, ( select financialm5_.Name from C_AcctSchema financialm5_ where financialm0_.C_AcctSchema_ID = financialm5_.C_AcctSchema_ID) as col_11_0_, ( select financialm6_.Value from C_ElementValue financialm6_ where financialm0_.Account_ID = financialm6_.C_ElementValue_ID) as col_12_0_, financialm0_.FactAcctType as col_13_0_, case when sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) > 0 then sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) else 0 end as col_14_0_, case when sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) > 0 then sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) else 0 end as col_15_0_ from Fact_Acct financialm0_ inner join C_Period financialm1_ on financialm0_.C_Period_ID = financialm1_.C_Period_ID inner join AD_Org organizati2_ on financialm0_.AD_Org_ID = organizati2_.AD_Org_ID cross join C_Period financialm3_ inner join C_PeriodControl financialm4_ on financialm3_.C_Period_ID = financialm4_.C_Period_ID where (financialm0_.FactAcctType in ('O', 'C', 'D', 'R')) and financialm1_.C_Year_ID = financialm3_.C_Year_ID and financialm4_.AD_Org_ID = organizati2_.AD_Periodcontrolallowed_Org_ID and (financialm0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (financialm0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and financialm4_.C_PeriodControl_ID = 'FF610BDCC0444034B64F282137C0D2D8' group by financialm0_.AD_Client_ID, financialm4_.C_PeriodControl_ID, financialm0_.C_AcctSchema_ID, financialm0_.Account_ID, financialm0_.FactAcctType, financialm1_.C_Year_ID, financialm4_.AD_Org_ID having sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) <> 0 order by financialm0_.FactAcctType DESC, col_14_0_ DESC, col_15_0_ DESC limit '101';
Date: 2026-07-16 13:17:10 Duration: 2s61ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select max(financialm0_.Fact_Acct_ID) as col_0_0_, financialm0_.AD_Client_ID as col_1_0_, financialm4_.AD_Org_ID as col_2_0_, max(financialm0_.Created) as col_3_0_, max(financialm0_.CreatedBy) as col_4_0_, max(financialm0_.Updated) as col_5_0_, max(financialm0_.UpdatedBy) as col_6_0_, max(financialm0_.IsActive) as col_7_0_, max(financialm0_.Fact_Acct_ID) as col_8_0_, max(financialm0_.Description) as col_9_0_, financialm4_.C_PeriodControl_ID as col_10_0_, ( select financialm5_.Name from C_AcctSchema financialm5_ where financialm0_.C_AcctSchema_ID = financialm5_.C_AcctSchema_ID) as col_11_0_, ( select financialm6_.Value from C_ElementValue financialm6_ where financialm0_.Account_ID = financialm6_.C_ElementValue_ID) as col_12_0_, financialm0_.FactAcctType as col_13_0_, case when sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) > 0 then sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) else 0 end as col_14_0_, case when sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) > 0 then sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) else 0 end as col_15_0_ from Fact_Acct financialm0_ inner join C_Period financialm1_ on financialm0_.C_Period_ID = financialm1_.C_Period_ID inner join AD_Org organizati2_ on financialm0_.AD_Org_ID = organizati2_.AD_Org_ID cross join C_Period financialm3_ inner join C_PeriodControl financialm4_ on financialm3_.C_Period_ID = financialm4_.C_Period_ID where (financialm0_.FactAcctType in ('O', 'C', 'D', 'R')) and financialm1_.C_Year_ID = financialm3_.C_Year_ID and financialm4_.AD_Org_ID = organizati2_.AD_Periodcontrolallowed_Org_ID and (financialm0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (financialm0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and financialm4_.C_PeriodControl_ID = 'FF610BDCC0444034B64F282137C0D2D8' group by financialm0_.AD_Client_ID, financialm4_.C_PeriodControl_ID, financialm0_.C_AcctSchema_ID, financialm0_.Account_ID, financialm0_.FactAcctType, financialm1_.C_Year_ID, financialm4_.AD_Org_ID having sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) <> 0 order by financialm0_.FactAcctType DESC, col_14_0_ DESC, col_15_0_ DESC limit '101';
Date: 2026-07-16 13:17:40 Duration: 1s460ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select max(financialm0_.Fact_Acct_ID) as col_0_0_, financialm0_.AD_Client_ID as col_1_0_, financialm4_.AD_Org_ID as col_2_0_, max(financialm0_.Created) as col_3_0_, max(financialm0_.CreatedBy) as col_4_0_, max(financialm0_.Updated) as col_5_0_, max(financialm0_.UpdatedBy) as col_6_0_, max(financialm0_.IsActive) as col_7_0_, max(financialm0_.Fact_Acct_ID) as col_8_0_, max(financialm0_.Description) as col_9_0_, financialm4_.C_PeriodControl_ID as col_10_0_, ( select financialm5_.Name from C_AcctSchema financialm5_ where financialm0_.C_AcctSchema_ID = financialm5_.C_AcctSchema_ID) as col_11_0_, ( select financialm6_.Value from C_ElementValue financialm6_ where financialm0_.Account_ID = financialm6_.C_ElementValue_ID) as col_12_0_, financialm0_.FactAcctType as col_13_0_, case when sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) > 0 then sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) else 0 end as col_14_0_, case when sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) > 0 then sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) else 0 end as col_15_0_ from Fact_Acct financialm0_ inner join C_Period financialm1_ on financialm0_.C_Period_ID = financialm1_.C_Period_ID inner join AD_Org organizati2_ on financialm0_.AD_Org_ID = organizati2_.AD_Org_ID cross join C_Period financialm3_ inner join C_PeriodControl financialm4_ on financialm3_.C_Period_ID = financialm4_.C_Period_ID where (financialm0_.FactAcctType in ('O', 'C', 'D', 'R')) and financialm1_.C_Year_ID = financialm3_.C_Year_ID and financialm4_.AD_Org_ID = organizati2_.AD_Periodcontrolallowed_Org_ID and (financialm0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (financialm0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and financialm4_.C_PeriodControl_ID = 'FF610BDCC0444034B64F282137C0D2D8' group by financialm0_.AD_Client_ID, financialm4_.C_PeriodControl_ID, financialm0_.C_AcctSchema_ID, financialm0_.Account_ID, financialm0_.FactAcctType, financialm1_.C_Year_ID, financialm4_.AD_Org_ID having sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) <> 0 order by financialm0_.FactAcctType DESC, col_14_0_ DESC, col_15_0_ DESC limit '101';
Date: 2026-07-16 13:17:16 Duration: 1s356ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 4s548ms 2 2s235ms 2s312ms 2s274ms select id, sum(qty) as qty, sum(qtycredit) as qtycredit, sum(qty_ref) as qty_ref, sum(qtycredit_ref) as qtycredit_ref from ( select m.c_elementvalue_id as id, (coalesce(f.amtacctdr, ?) - coalesce(f.amtacctcr, ?)) as qty, (coalesce(f.amtacctcr, ?) - coalesce(f.amtacctdr, ?)) as qtycredit, ? as qty_ref, ? as qtycredit_ref from c_elementvalue m, fact_acct f, c_period p, c_year y where m.ad_org_id in (...) and m.ad_client_id in (...) and ? = ? and f.c_acctschema_id = ? and f.factaccttype <> ? and f.factaccttype <> ? and m.c_elementvalue_id = f.account_id and ? = ? and f.ad_org_id in (...) and f.c_period_id = p.c_period_id and p.c_year_id = y.c_year_id and y.year in (...) and not exists ( select ? from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> ?) union all select m.c_elementvalue_id as id, ? as qty, ? as qtycredit, (coalesce(f.amtacctdr, ?) - coalesce(f.amtacctcr, ?)) as qty_ref, (coalesce(f.amtacctcr, ?) - coalesce(f.amtacctdr, ?)) as qtycredit_ref from c_elementvalue m, fact_acct f, c_period p, c_year y where m.ad_org_id in (...) and m.ad_client_id in (...) and (? = ? or to_char(?) = to_char(?)) and ? = ? and f.c_acctschema_id = ? and f.factaccttype <> ? and f.factaccttype <> ? and m.c_elementvalue_id = f.account_id and ? = ? and f.ad_org_id in (...) and f.c_period_id = p.c_period_id and p.c_year_id = y.c_year_id and y.year in (...) and not exists ( select ? from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> ?)) aa group by id;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 16 13 2 4s548ms 2s274ms [ User: tad - Total duration: 4s548ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s548ms - Times executed: 2 ]
-
SELECT ID, SUM(QTY) AS QTY, SUM(QTYCREDIT) AS QTYCREDIT, SUM(QTY_REF) AS QTY_REF, SUM(QTYCREDIT_REF) AS QTYCREDIT_REF FROM ( SELECT m.C_ElementValue_ID as id, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit, 0 as qty_ref, 0 as qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 0 = 0 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND Y.YEAR IN ('2025') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2024') UNION ALL SELECT m.C_ElementValue_ID as id, 0 AS QTY, 0 as qtyCredit, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty_ref, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND (1 = 2 OR to_char('Y') = to_char('Y')) AND 2 = 2 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 1 = 1 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND y.YEAR IN ('2024') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2023')) AA GROUP BY ID;
Date: 2026-07-16 13:13:53 Duration: 2s312ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT ID, SUM(QTY) AS QTY, SUM(QTYCREDIT) AS QTYCREDIT, SUM(QTY_REF) AS QTY_REF, SUM(QTYCREDIT_REF) AS QTYCREDIT_REF FROM ( SELECT m.C_ElementValue_ID as id, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit, 0 as qty_ref, 0 as qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 0 = 0 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND Y.YEAR IN ('2025') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2024') UNION ALL SELECT m.C_ElementValue_ID as id, 0 AS QTY, 0 as qtyCredit, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty_ref, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND (1 = 2 OR to_char('Y') = to_char('Y')) AND 2 = 2 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 1 = 1 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND y.YEAR IN ('2024') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2023')) AA GROUP BY ID;
Date: 2026-07-16 13:13:58 Duration: 2s235ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 4s248ms 2 2s124ms 2s124ms 2s124ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 16 10 2 4s248ms 2s124ms [ User: tad - Total duration: 4s248ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s248ms - Times executed: 2 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/358%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:55 Duration: 2s124ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3584%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:56 Duration: 2s124ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($15) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $16;
Date: 2026-07-16 10:49:54 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
20 4s194ms 2 2s75ms 2s118ms 2s97ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 16 10 2 4s194ms 2s97ms [ User: tad - Total duration: 4s194ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s194ms - Times executed: 2 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/359%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:36 Duration: 2s118ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3592%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:38 Duration: 2s75ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($17) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($18) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $19;
Date: 2026-07-16 10:50:35 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 45 5m28s 6s929ms 10s578ms 7s298ms select * from c_order_post (?);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 16 08 2 14s305ms 7s152ms 09 5 36s56ms 7s211ms 10 6 42s781ms 7s130ms 11 2 14s185ms 7s92ms 12 7 49s680ms 7s97ms 15 11 1m22s 7s538ms 16 8 59s836ms 7s479ms 17 4 28s665ms 7s166ms [ User: tad - Total duration: 5m28s - Times executed: 45 ]
[ Application: openbravo - Total duration: 5m28s - Times executed: 45 ]
-
SELECT * FROM C_ORDER_POST ('442A0684520141A3AA7A35EE385DA068');
Date: 2026-07-16 15:16:12 Duration: 10s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('C02B844084634A12A689B79627C69E2D');
Date: 2026-07-16 16:19:00 Duration: 9s165ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('80115F4A83664475BACBA04ECE41359A');
Date: 2026-07-16 15:56:49 Duration: 7s534ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 15 18s128ms 1s88ms 1s957ms 1s208ms select * from ( select o.c_order_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, o.c_order_id, ?) || ? || sum(ol.linenetamt) || ? || o.totallines as description, ? as isactive, o.ad_org_id as ad_org_id, o.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, o.c_order_id, ?) as record_id from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) 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 16 07 1 1s263ms 1s263ms 08 1 1s129ms 1s129ms 09 1 1s171ms 1s171ms 10 1 1s110ms 1s110ms 11 1 1s194ms 1s194ms 12 1 1s97ms 1s97ms 13 1 1s196ms 1s196ms 14 1 1s957ms 1s957ms 15 1 1s135ms 1s135ms 16 1 1s191ms 1s191ms 17 1 1s174ms 1s174ms 18 1 1s88ms 1s88ms 19 1 1s157ms 1s157ms 20 1 1s89ms 1s89ms 21 1 1s171ms 1s171ms [ User: tad - Total duration: 18s128ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 18s128ms - Times executed: 15 ]
-
SELECT * FROM ( select o.c_order_id AS REFERENCEKEY_ID, '0' AS AD_ROLE_ID, NULL AS AD_USER_ID, 'Check totals of the next order ' || AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') || ' Lines: ' || sum(ol.linenetamt) || ' , Order: ' || o.totallines as DESCRIPTION, 'Y' AS ISACTIVE, o.AD_ORG_ID AS AD_ORG_ID, o.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, '0' AS CREATEDBY, now() AS UPDATED, '0' AS UPDATEDBY, AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') AS RECORD_ID from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '92F0537DB3A4485E95386FF56E727C80' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 14:00:01 Duration: 1s957ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select o.c_order_id AS REFERENCEKEY_ID, '0' AS AD_ROLE_ID, NULL AS AD_USER_ID, 'Check totals of the next order ' || AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') || ' Lines: ' || sum(ol.linenetamt) || ' , Order: ' || o.totallines as DESCRIPTION, 'Y' AS ISACTIVE, o.AD_ORG_ID AS AD_ORG_ID, o.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, '0' AS CREATEDBY, now() AS UPDATED, '0' AS UPDATEDBY, AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') AS RECORD_ID from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '92F0537DB3A4485E95386FF56E727C80' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 07:00:01 Duration: 1s263ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select o.c_order_id AS REFERENCEKEY_ID, '0' AS AD_ROLE_ID, NULL AS AD_USER_ID, 'Check totals of the next order ' || AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') || ' Lines: ' || sum(ol.linenetamt) || ' , Order: ' || o.totallines as DESCRIPTION, 'Y' AS ISACTIVE, o.AD_ORG_ID AS AD_ORG_ID, o.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, '0' AS CREATEDBY, now() AS UPDATED, '0' AS UPDATEDBY, AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') AS RECORD_ID from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '92F0537DB3A4485E95386FF56E727C80' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 13:00:01 Duration: 1s196ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 14 1m38s 6s812ms 7s230ms 7s20ms select * from m_inout_post0 (?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 16 09 1 6s923ms 6s923ms 10 2 14s201ms 7s100ms 12 2 14s242ms 7s121ms 15 2 14s206ms 7s103ms 16 5 34s902ms 6s980ms 17 2 13s809ms 6s904ms [ User: tad - Total duration: 1m38s - Times executed: 14 ]
[ Application: openbravo - Total duration: 1m38s - Times executed: 14 ]
-
SELECT * FROM M_InOut_Post0 ('EFC0907C15CC42EC9CC31DF915FCB47A');
Date: 2026-07-16 10:53:57 Duration: 7s230ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('9325007680064BD48B8D81C2A641BB3F');
Date: 2026-07-16 12:47:23 Duration: 7s188ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('37FB150F17C44DD0942516764B596BBE');
Date: 2026-07-16 15:35:24 Duration: 7s177ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 12 14s40ms 1s2ms 2s315ms 1s170ms select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 08 1 1s517ms 1s517ms 10 6 6s139ms 1s23ms 13 1 2s315ms 2s315ms 14 4 4s67ms 1s16ms [ User: tad - Total duration: 14s40ms - Times executed: 12 ]
[ Application: openbravo - Total duration: 14s40ms - Times executed: 12 ]
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = '6BFB63A78EB74D33BCF96CA70B345A32';
Date: 2026-07-16 13:48:18 Duration: 2s315ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = 'A0EA6676758A431D97D0EF94B42A67DF';
Date: 2026-07-16 08:06:53 Duration: 1s517ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = '7030BD9DBC1F4E9DB35DA9639DAE294A';
Date: 2026-07-16 10:50:16 Duration: 1s67ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 10 6m27s 3s63ms 47s978ms 38s718ms select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id in (...);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 16 10 8 4m51s 36s452ms 13 2 1m35s 47s780ms [ User: tad - Total duration: 6m27s - Times executed: 10 ]
[ Application: openbravo - Total duration: 6m27s - Times executed: 10 ]
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('DA6D5109E0794236A336DF4E401DDF51', 'AF26C99F1F5B4BDA9ADE33281C824310', 'A74D5584155C4F2ABB29197BEEAB6AEF', 'A0EA6676758A431D97D0EF94B42A67DF', '999BC0DA6F604831BCE836ACC899B166', '8194420624964FAC9C7553A635DC07AC', '7030BD9DBC1F4E9DB35DA9639DAE294A', '6BFB63A78EB74D33BCF96CA70B345A32', '4DA771C0639B4722ABB73776386246C7', '44283D5184804405B5322523206369DF', '2B3669E169F94F159126C4FD0783410C', '0DECD474EEE04C9288CCC2EF80CB9067', 'D77F3EC2F2FB4F0E8167AE5A720DA84B', 'CF4FE921173D4296A13612C39A226ABB', '974C3A378CBC492C8AC100C35B262D28', '92FB4AA6CF8C4016ABCF18B511F990E4', '902BE349A14C46C484FDE3AA4CA87FD1', '70E06199D44142D2AC0425EA5A0E4E25', '6D1A505D0A874F5B8EFD2CADD6542C78', '57CDF98D9C954D519E6902F8AE16AB0E', '40A7E834ED004BC0BC56E8EBC39E3F96', '3EB2D430287B4C578B13E33CD71028B4', '253A1863F8894B348BBC8235B3B7B4FD', 'D1BBB239C3BA4FCE80C09CA8F3AC90DC', 'CBCA234DA9B74D84B2165C1AD8183CBD', 'B203A5E9D8784D56807F6C07C968B979', 'AF9059E7C4F14AB0877DF403E828905D', '9D60729BADAE4DFEBB393723AA46A9B8', '907395AA40CD4274AECE7E26691CF41E', '2F08189EB11D4B95B70C015C9DD6077C', 'ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '5ABD202EBA7A425AA48CE424BB714D79', 'FAE634ADA07B4BA0A943FCBC71269F1C');
Date: 2026-07-16 13:53:29 Duration: 47s978ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('BBC8993C9B36449E95538F8BC635937D', 'BB1C633AA69344E3B614CE64E6E5A73F', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53', 'B5776043334E4F0B95A45E7E9ADB6CB3', 'B4DEB76EB3DE440AA03884C3AD5BC3A7', 'A613569C616B4400A67CF0D2E98E25B8', '9DE3E845BFFC4A90A3DB21B8ECA3AF83', '9CBAA873B64242F48DEE11BD7BDAB6A1', '7B96CE62188341F8A9F65807E5BDE3CD', '7AC5E7AF6F744819B5866D21F11E5D98', '6E1A004618DF48A08C11E6AB69C776DB', '5DE33BA2BB0C408EB2225A522952B93A', '5706ECDDBB9B4D41BF734341204461B2', '3F8FA22AA507446D87BFA9606F8072EF', '3B63B0F2F82246B2B7DE41D8091EC984', '2CAB937F19A44748B75691078B8720B9', '1226078C4C694576804583ACE24E3CD1', '0F80F36AD02C4185BB146A2523B3A431', '046E97912FB44F5787E61044CA75E783', 'FE8EFFA3F1724CE5A78E4532E8195A2C', 'F48F564D3EE54934A2E6A5D3555590CA', 'DCC1A05E11734188AD665D1C7F6A8B2C', 'CFB49E3F6DFA43988C9820CFCDF4D722', 'C2830A625C984F3FB65E946DF2779D5F', 'AB80C22BCAC74F56A98588F72B0BD6FA', '9D2FC4CF3D2D4DDC8DF9765E7605691D', '885134123AB646009C9FC6B8D5880267', '70BB8001548149C69D5197506CF16EFD', '567187AA7CAB449A886A6680521D3C52', '519ACB7BDE114495B0F2D46047F2782E', '45512BEB1434414FB421BB54F92A104E', '405EBE347D3E4391BE791C5A74742437', '3844AFF038554BBC86F7FD6A1225D528', '0304315403A44A4188FDF14E43C6261B', 'E6A5BF9EE2B3463B9F2ED43DD53F5F72', 'E68E7F26E6824330AD82619695DC47C4');
Date: 2026-07-16 10:52:07 Duration: 47s687ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('CEA9CD52250B4B29B846C042C96F2922', 'C73F04E916A542A6A7C6BC804ECAA073', 'A727D6966444476BA22F8B1311B551A3', '9E2ACDE62C4148E19F2FE87DCFAC03F8', '8D26BC165048413D88C1685253901CD6', '5E9BAB4472444E47A9E6EBA94854EFC3', '4D2AAFB1CFDE47549AC2FE79A4F9FB1A', 'D016BF162A0D44C89BB2E6990520C605', 'ACFDB325EB4F4DF8BF58378D22D9F44F', '937405A6B3724C9A83634E5506AD705A', '4491D6600BF14B59B3CD6CF7ABBD15DA', '2EDE7CF7A16A477E8410E2BAA1926C37', '22BC19172EF541DDA63167D80D768B04', 'EB82D8DBCF924F68A64FE58482C75215', '991C37144AC14AFCBF08A9EC3C82F3D3', '722FDF555D484CB5988814C95EB555B3', '62A7795968BB46E798B6E10EB46FAD1C', 'FDEFE41886A84F968C0EADEED98AD68A', 'DF3FAA6669134BE583F1B43CE2FCD4EE', 'DB96D645ED944C42922CACB8EA52035B', 'C3C80C6B41E44E57995481EE244760BE', 'BA08B5F7E11646858B2F33220E9B9185', 'AD0AA61E1DC245A599E0F4DF70DB8383', '932529E707E34CB4A3ACF355958E7D64', '9099F11C2EE14F519D6DCA39EE22C9C5', '8BAA962A033249688B9F67D4C6DE2576', '5608C842F1734D239A116534E2882093', '32105F26116F4B27AE11F14975663678', '2C5ACB9469B3491FB15AB1C8A35A3EE9', '1927365C95C7490DA32C4CDF2EB75C0C', 'FB82FC2562A940338FD986F8F0269025', '75D9B11D98FF4665BB603C010156228A', '3BC6405AA4E44A549C9ACE2FDDF91C63', 'D75BD6F5F66B44A5990103A873EAD7D8', 'B61FB40211F548B0AA9D0C4AAF09C554', 'A99C8AEEE2C943FBA55966D4C5E31CB8', '9366F4352F624DEB9C23C52FCB18D321', '83106130B1D3435387E43EF91FC7B5A2', '25AB778E4A0F443981A3F6F4546E75F4', '1406F359228A43E39D0A769EC593546F', 'FA61AF6FAAD44AB5A6D03C15D4E3FA9C', 'D674DE7912FB4C18B9E970DDF4247484', 'B633C5444578453888DE901687603DAB', '34163C4142ED4F2CBDF60FF1CDACE2D6', '1E461566C8C748719C8E4DC8592F7698', '1BDBD8AA6E5D40178C7DCF53AA759250', '194F1E050D33409D9EA355391AAD2E01', '9073B8C50C8042F59C68214375FF34F7', '7A6F82E9F9E1442A8C0B1F993EA3F25F', '5CA665CBF27249A7AC2BB3B134D5F308');
Date: 2026-07-16 10:36:29 Duration: 47s673ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 9 18s626ms 1s979ms 2s198ms 2s69ms select invoicecan0_.c_order_id as col_0_0_, organizati2_.name as col_1_0_, invoicecan0_.c_doctype_id as col_2_0_, invoicecan0_.documentno as col_3_0_, businesspa3_.name as col_4_0_, invoicecan0_.dateordered as col_5_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end as col_6_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end as col_7_0_, invoicecan0_.term as col_8_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? then case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then ?.? else invoicecan0_.pendinglines end as col_9_0_, invoicecan0_.qtyordered as col_10_0_, invoicecan0_.qtydelivered as col_11_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end - ( case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end) as col_12_0_, invoicecan0_.amountlinesgross as col_13_0_, invoicecan0_.created as col_14_0_, invoicecan0_.createdby as col_15_0_, invoicecan0_.updated as col_16_0_, invoicecan0_.updatedby as col_17_0_, documentty4_.c_doctype_id as c_doctyp1_224_0_, aduser5_.ad_user_id as ad_user_1_129_1_, aduser6_.ad_user_id as ad_user_1_129_2_, documentty4_.ad_client_id as ad_clien2_224_0_, documentty4_.ad_org_id as ad_org_i3_224_0_, documentty4_.isactive as isactive4_224_0_, documentty4_.created as created5_224_0_, documentty4_.createdby as createdb6_224_0_, documentty4_.updated as updated7_224_0_, documentty4_.updatedby as updatedb8_224_0_, documentty4_.name as name9_224_0_, documentty4_.printname as printna10_224_0_, documentty4_.description as descrip11_224_0_, documentty4_.docbasetype as docbase12_224_0_, documentty4_.issotrx as issotrx13_224_0_, documentty4_.docsubtypeso as docsubt14_224_0_, documentty4_.c_doctypeshipment_id as c_docty15_224_0_, documentty4_.c_doctypeinvoice_id as c_docty16_224_0_, documentty4_.isdocnocontrolled as isdocno17_224_0_, documentty4_.docnosequence_id as docnose18_224_0_, documentty4_.gl_category_id as gl_cate19_224_0_, documentty4_.documentnote as documen20_224_0_, documentty4_.isdefault as isdefau21_224_0_, documentty4_.documentcopies as documen22_224_0_, documentty4_.ad_table_id as ad_tabl23_224_0_, documentty4_.orgfiltered as orgfilt24_224_0_, documentty4_.c_doctype_reversed_id as c_docty25_224_0_, documentty4_.em_intr_transaction_type as em_intr26_224_0_, documentty4_.isexpense as isexpen27_224_0_, documentty4_.em_intr_statistical_regime as em_intr28_224_0_, documentty4_.isreversal as isrever29_224_0_, documentty4_.isreturn as isretur30_224_0_, documentty4_.c_doctypeorder_id as c_docty31_224_0_, documentty4_.c_doctypesimpinvoice_id as c_docty32_224_0_, documentty4_.em_obwpl_useoutbound as em_obwp33_224_0_, documentty4_.em_prouti_c_doctypeorder_id as em_prou34_224_0_, documentty4_.c_doctypeaggrinvoice_id as c_docty35_224_0_, documentty4_.em_obwpl_isgroup as em_obwp36_224_0_, documentty4_.em_obwpl_generateshipment as em_obwp37_224_0_, documentty4_.em_tbai_ad_sequence_id as em_tbai38_224_0_, documentty4_.em_etvfac_inv_type as em_etvf39_224_0_, documentty4_.em_obwpl_shipmentdoctype_id as em_obwp40_224_0_, documentty4_.em_etvfac_verifac_desc as em_etvf41_224_0_, documentty4_.em_etvfac_external_ref as em_etvf42_224_0_, documentty4_.em_etvfac_simpinvart7273 as em_etvf43_224_0_, documentty4_.em_etvfac_invnoidart61d as em_etvf44_224_0_, documentty4_.em_prwss_is_ws_type as em_prws45_224_0_, documentty4_.em_etvfac_reverseinvtype as em_etvf46_224_0_, documentty4_.em_etsg_isrectificative as em_etsg47_224_0_, documentty4_.em_pruti_inforeport2 as em_prut48_224_0_, documentty4_.em_pruti_inforeport as em_prut49_224_0_, documentty4_.em_pruti_inforeport3 as em_prut50_224_0_, documentty4_.em_pruti_image_id as em_prut51_224_0_, documentty4_.em_pruti_image2_id as em_prut52_224_0_, documentty4_.em_pruti_email as em_prut53_224_0_, documentty4_.em_pruti_url as em_prut54_224_0_, documentty4_.em_pruti_phone as em_prut55_224_0_, documentty4_.em_pruti_phone2 as em_prut56_224_0_, documentty4_.em_pruti_fax as em_prut57_224_0_, aduser5_.ad_client_id as ad_clien2_129_1_, aduser5_.ad_org_id as ad_org_i3_129_1_, aduser5_.isactive as isactive4_129_1_, aduser5_.created as created5_129_1_, aduser5_.createdby as createdb6_129_1_, aduser5_.updated as updated7_129_1_, aduser5_.updatedby as updatedb8_129_1_, aduser5_.name as name9_129_1_, aduser5_.description as descrip10_129_1_, aduser5_.password as passwor11_129_1_, aduser5_.email as email12_129_1_, aduser5_.supervisor_id as supervi13_129_1_, aduser5_.c_bpartner_id as c_bpart14_129_1_, aduser5_.processing as process15_129_1_, aduser5_.emailuser as emailus16_129_1_, aduser5_.emailuserpw as emailus17_129_1_, aduser5_.c_bpartner_location_id as c_bpart18_129_1_, aduser5_.c_greeting_id as c_greet19_129_1_, aduser5_.title as title20_129_1_, aduser5_.comments as comment21_129_1_, aduser5_.phone as phone22_129_1_, aduser5_.phone2 as phone23_129_1_, aduser5_.fax as fax24_129_1_, aduser5_.lastcontact as lastcon25_129_1_, aduser5_.lastresult as lastres26_129_1_, aduser5_.birthday as birthda27_129_1_, aduser5_.ad_orgtrx_id as ad_orgt28_129_1_, aduser5_.firstname as firstna29_129_1_, aduser5_.lastname as lastnam30_129_1_, aduser5_.username as usernam31_129_1_, aduser5_.default_ad_client_id as default32_129_1_, aduser5_.default_ad_language as default33_129_1_, aduser5_.default_ad_org_id as default34_129_1_, aduser5_.default_ad_role_id as default35_129_1_, aduser5_.default_m_warehouse_id as default36_129_1_, aduser5_.islocked as islocke37_129_1_, aduser5_.ad_image_id as ad_imag38_129_1_, aduser5_.grant_portal_access as grant_p39_129_1_, aduser5_.lastpasswordupdate as lastpas40_129_1_, aduser5_.isexpiredpassword as isexpir41_129_1_, aduser5_.em_obpos_default_pos_role as em_obpo42_129_1_, aduser5_.commercialauth as commerc43_129_1_, aduser5_.viasms as viasms44_129_1_, aduser5_.viaemail as viaemai45_129_1_, aduser5_.em_pruti_isbillingcontact as em_prut46_129_1_, aduser5_.em_pruti_isordercontact as em_prut47_129_1_, aduser5_.em_smfsws_default_ws_role_id as em_smfs48_129_1_, aduser5_.em_pruti_ispurchaseordcontact as em_prut49_129_1_, aduser5_.em_pruti_isshipmentcontact as em_prut50_129_1_, aduser5_.em_primpa_iscontact as em_prim51_129_1_, aduser5_.em_obretco_default_pos_contact as em_obre52_129_1_, aduser6_.ad_client_id as ad_clien2_129_2_, aduser6_.ad_org_id as ad_org_i3_129_2_, aduser6_.isactive as isactive4_129_2_, aduser6_.created as created5_129_2_, aduser6_.createdby as createdb6_129_2_, aduser6_.updated as updated7_129_2_, aduser6_.updatedby as updatedb8_129_2_, aduser6_.name as name9_129_2_, aduser6_.description as descrip10_129_2_, aduser6_.password as passwor11_129_2_, aduser6_.email as email12_129_2_, aduser6_.supervisor_id as supervi13_129_2_, aduser6_.c_bpartner_id as c_bpart14_129_2_, aduser6_.processing as process15_129_2_, aduser6_.emailuser as emailus16_129_2_, aduser6_.emailuserpw as emailus17_129_2_, aduser6_.c_bpartner_location_id as c_bpart18_129_2_, aduser6_.c_greeting_id as c_greet19_129_2_, aduser6_.title as title20_129_2_, aduser6_.comments as comment21_129_2_, aduser6_.phone as phone22_129_2_, aduser6_.phone2 as phone23_129_2_, aduser6_.fax as fax24_129_2_, aduser6_.lastcontact as lastcon25_129_2_, aduser6_.lastresult as lastres26_129_2_, aduser6_.birthday as birthda27_129_2_, aduser6_.ad_orgtrx_id as ad_orgt28_129_2_, aduser6_.firstname as firstna29_129_2_, aduser6_.lastname as lastnam30_129_2_, aduser6_.username as usernam31_129_2_, aduser6_.default_ad_client_id as default32_129_2_, aduser6_.default_ad_language as default33_129_2_, aduser6_.default_ad_org_id as default34_129_2_, aduser6_.default_ad_role_id as default35_129_2_, aduser6_.default_m_warehouse_id as default36_129_2_, aduser6_.islocked as islocke37_129_2_, aduser6_.ad_image_id as ad_imag38_129_2_, aduser6_.grant_portal_access as grant_p39_129_2_, aduser6_.lastpasswordupdate as lastpas40_129_2_, aduser6_.isexpiredpassword as isexpir41_129_2_, aduser6_.em_obpos_default_pos_role as em_obpo42_129_2_, aduser6_.commercialauth as commerc43_129_2_, aduser6_.viasms as viasms44_129_2_, aduser6_.viaemail as viaemai45_129_2_, aduser6_.em_pruti_isbillingcontact as em_prut46_129_2_, aduser6_.em_pruti_isordercontact as em_prut47_129_2_, aduser6_.em_smfsws_default_ws_role_id as em_smfs48_129_2_, aduser6_.em_pruti_ispurchaseordcontact as em_prut49_129_2_, aduser6_.em_pruti_isshipmentcontact as em_prut50_129_2_, aduser6_.em_primpa_iscontact as em_prim51_129_2_, aduser6_.em_obretco_default_pos_contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join c_order order1_ on invoicecan0_.c_order_id = order1_.c_order_id inner join ad_org organizati2_ on invoicecan0_.ad_org_id = organizati2_.ad_org_id inner join c_bpartner businesspa3_ on invoicecan0_.c_bpartner_id = businesspa3_.c_bpartner_id inner join c_doctype documentty4_ on invoicecan0_.c_doctype_id = documentty4_.c_doctype_id inner join ad_user aduser5_ on invoicecan0_.createdby = aduser5_.ad_user_id inner join ad_user aduser6_ on invoicecan0_.updatedby = aduser6_.ad_user_id where (invoicecan0_.term = ? and invoicecan0_.qtydelivered <> ? and (? = ? and (exists ( select ? from c_orderline orderline7_ where orderline7_.c_order_id = order1_.c_order_id and orderline7_.qtydelivered - orderline7_.qtyinvoiced <> ?)) or ? = ?) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline8_ where orderline8_.c_order_id = order1_.c_order_id and orderline8_.qtyordered - orderline8_.qtyinvoiced <> ?)) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline9_ where orderline9_.c_order_id = order1_.c_order_id and orderline9_.qtydelivered <> ? and orderline9_.qtydelivered <> orderline9_.qtyinvoiced)) or invoicecan0_.term = ? and invoicecan0_.qtyordered = invoicecan0_.qtydelivered) and (invoicecan0_.ad_client_id in (...)) and (invoicecan0_.ad_org_id in (...)) and (upper(businesspa3_.name) like upper(?) escape ?) order by organizati2_.name, businesspa3_.name, invoicecan0_.dateordered limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 16 12 4 8s243ms 2s60ms 17 5 10s382ms 2s76ms [ User: tad - Total duration: 18s626ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 18s626ms - Times executed: 9 ]
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (upper(businesspa3_.Name) like upper('%AJUN%') escape '|') order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:32:52 Duration: 2s198ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (upper(businesspa3_.Name) like upper('%A%') escape '|') order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:32:51 Duration: 2s137ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (upper(businesspa3_.Name) like upper('%talh%') escape '|') order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 12:45:30 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 7 14s743ms 2s35ms 2s156ms 2s106ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 16 10 7 14s743ms 2s106ms [ User: tad - Total duration: 14s743ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 14s743ms - Times executed: 7 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/379%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:54 Duration: 2s156ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', '46B3AAC3A06B4ED793016C4E5C54E704', '7037B0EC9AA9481E92BB79013794D122', '9548EA89B074486593E4DB6ACF8C1F7C', 'D154E2095B75489AA5779DB1C1B1EA53', 'E425E7CD846B4FDF9E6488B94D9EF109', 'F3CF3A9446AF497EBF31A19599BA946F') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%C3580%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%46B3AAC3A06B4ED793016C4E5C54E704%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%7037B0EC9AA9481E92BB79013794D122%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%9548EA89B074486593E4DB6ACF8C1F7C%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D154E2095B75489AA5779DB1C1B1EA53%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E425E7CD846B4FDF9E6488B94D9EF109%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F3CF3A9446AF497EBF31A19599BA946F%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:57 Duration: 2s128ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', '46B3AAC3A06B4ED793016C4E5C54E704', '7037B0EC9AA9481E92BB79013794D122', '9548EA89B074486593E4DB6ACF8C1F7C', 'D154E2095B75489AA5779DB1C1B1EA53', 'E425E7CD846B4FDF9E6488B94D9EF109', 'F3CF3A9446AF497EBF31A19599BA946F') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%C26/3580%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%46B3AAC3A06B4ED793016C4E5C54E704%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%7037B0EC9AA9481E92BB79013794D122%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%9548EA89B074486593E4DB6ACF8C1F7C%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D154E2095B75489AA5779DB1C1B1EA53%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E425E7CD846B4FDF9E6488B94D9EF109%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F3CF3A9446AF497EBF31A19599BA946F%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:59 Duration: 2s123ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 5 9s841ms 1s920ms 2s29ms 1s968ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ? offset ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 16 10 5 9s841ms 1s968ms [ User: tad - Total duration: 9s841ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 9s841ms - Times executed: 5 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '400';
Date: 2026-07-16 10:48:42 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-16 10:48:35 Duration: 1s999ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '500';
Date: 2026-07-16 10:48:45 Duration: 1s954ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 5 6s333ms 1s240ms 1s300ms 1s266ms select product1_.value as col_0_0_, product1_.m_product_id as col_1_0_, pricingpri2_.m_pricelist_version_id as col_2_0_, pricingpri2_.name as col_3_0_, currency4_.c_currency_id as col_4_0_, pricingpro0_.pricelimit as col_5_0_, product1_.name as col_6_0_, product1_.c_uom_id as col_7_0_, pricingpro0_.pricestd as col_8_0_, pricingpro0_.pricelist as col_9_0_, pricingpri3_.issopricelist as col_10_0_, product1_.characteristic_desc as col_11_0_, product5_.name as col_12_0_, product1_.upc as col_13_0_, pricingpri2_.m_pricelist_version_id as m_pricel1_551_0_, uom6_.c_uom_id as c_uom_id1_324_1_, pricingpri2_.ad_client_id as ad_clien2_551_0_, pricingpri2_.ad_org_id as ad_org_i3_551_0_, pricingpri2_.isactive as isactive4_551_0_, pricingpri2_.created as created5_551_0_, pricingpri2_.createdby as createdb6_551_0_, pricingpri2_.updated as updated7_551_0_, pricingpri2_.updatedby as updatedb8_551_0_, pricingpri2_.name as name9_551_0_, pricingpri2_.description as descrip10_551_0_, pricingpri2_.m_pricelist_id as m_price11_551_0_, pricingpri2_.m_discountschema_id as m_disco12_551_0_, pricingpri2_.validfrom as validfr13_551_0_, pricingpri2_.proccreate as proccre14_551_0_, pricingpri2_.m_pricelist_version_base_id as m_price15_551_0_, pricingpri2_.m_pricelist_version_generate as m_price16_551_0_, pricingpri2_.em_pruti_import_prices as em_prut17_551_0_, uom6_.ad_client_id as ad_clien2_324_1_, uom6_.ad_org_id as ad_org_i3_324_1_, uom6_.isactive as isactive4_324_1_, uom6_.created as created5_324_1_, uom6_.updated as updated6_324_1_, uom6_.createdby as createdb7_324_1_, uom6_.updatedby as updatedb8_324_1_, uom6_.x12de355 as x9_324_1_, uom6_.uomsymbol as uomsymb10_324_1_, uom6_.name as name11_324_1_, uom6_.description as descrip12_324_1_, uom6_.stdprecision as stdprec13_324_1_, uom6_.costingprecision as costing14_324_1_, uom6_.isdefault as isdefau15_324_1_, uom6_.breakdown as breakdo16_324_1_, uom6_.uom_type as uom_typ17_324_1_, uom6_.useinproduction as useinpr18_324_1_ from m_productprice pricingpro0_ inner join m_product product1_ on pricingpro0_.m_product_id = product1_.m_product_id inner join m_pricelist_version pricingpri2_ on pricingpro0_.m_pricelist_version_id = pricingpri2_.m_pricelist_version_id inner join m_pricelist pricingpri3_ on pricingpri2_.m_pricelist_id = pricingpri3_.m_pricelist_id left outer join c_currency currency4_ on pricingpri3_.c_currency_id = currency4_.c_currency_id left outer join m_product product5_ on product1_.generic_product_id = product5_.m_product_id inner join c_uom uom6_ on product1_.c_uom_id = uom6_.c_uom_id where product1_.isgeneric = ? and product1_.isactive = ? and pricingpri2_.isactive = ? and (product1_.ad_client_id in (...)) and (product1_.ad_org_id in (...)) and pricingpri3_.issopricelist = ? and currency4_.c_currency_id = ? and (upper(product1_.upc) like upper(?) or upper(product1_.value) like upper(?) or upper(product1_.name) like upper(?)) and (upper(pricingpri2_.name) like upper(?)) and pricingpri2_.m_pricelist_version_id = ? order by ? limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 09 2 2s561ms 1s280ms 10 3 3s771ms 1s257ms [ User: tad - Total duration: 6s333ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 6s333ms - Times executed: 5 ]
-
select product1_.Value as col_0_0_, product1_.M_Product_ID as col_1_0_, pricingpri2_.M_PriceList_Version_ID as col_2_0_, pricingpri2_.Name as col_3_0_, currency4_.C_Currency_ID as col_4_0_, pricingpro0_.PriceLimit as col_5_0_, product1_.Name as col_6_0_, product1_.C_UOM_ID as col_7_0_, pricingpro0_.PriceStd as col_8_0_, pricingpro0_.PriceList as col_9_0_, pricingpri3_.IsSOPriceList as col_10_0_, product1_.Characteristic_Desc as col_11_0_, product5_.Name as col_12_0_, product1_.UPC as col_13_0_, pricingpri2_.M_PriceList_Version_ID as m_pricel1_551_0_, uom6_.C_UOM_ID as c_uom_id1_324_1_, pricingpri2_.AD_Client_ID as ad_clien2_551_0_, pricingpri2_.AD_Org_ID as ad_org_i3_551_0_, pricingpri2_.IsActive as isactive4_551_0_, pricingpri2_.Created as created5_551_0_, pricingpri2_.CreatedBy as createdb6_551_0_, pricingpri2_.Updated as updated7_551_0_, pricingpri2_.UpdatedBy as updatedb8_551_0_, pricingpri2_.Name as name9_551_0_, pricingpri2_.Description as descrip10_551_0_, pricingpri2_.M_PriceList_ID as m_price11_551_0_, pricingpri2_.M_DiscountSchema_ID as m_disco12_551_0_, pricingpri2_.ValidFrom as validfr13_551_0_, pricingpri2_.ProcCreate as proccre14_551_0_, pricingpri2_.M_Pricelist_Version_Base_ID as m_price15_551_0_, pricingpri2_.M_Pricelist_Version_Generate as m_price16_551_0_, pricingpri2_.EM_Pruti_Import_Prices as em_prut17_551_0_, uom6_.AD_Client_ID as ad_clien2_324_1_, uom6_.AD_Org_ID as ad_org_i3_324_1_, uom6_.IsActive as isactive4_324_1_, uom6_.Created as created5_324_1_, uom6_.Updated as updated6_324_1_, uom6_.CreatedBy as createdb7_324_1_, uom6_.UpdatedBy as updatedb8_324_1_, uom6_.X12DE355 as x9_324_1_, uom6_.UOMSymbol as uomsymb10_324_1_, uom6_.Name as name11_324_1_, uom6_.Description as descrip12_324_1_, uom6_.StdPrecision as stdprec13_324_1_, uom6_.CostingPrecision as costing14_324_1_, uom6_.IsDefault as isdefau15_324_1_, uom6_.Breakdown as breakdo16_324_1_, uom6_.UOM_Type as uom_typ17_324_1_, uom6_.Useinproduction as useinpr18_324_1_ from M_ProductPrice pricingpro0_ inner join M_Product product1_ on pricingpro0_.M_Product_ID = product1_.M_Product_ID inner join M_PriceList_Version pricingpri2_ on pricingpro0_.M_PriceList_Version_ID = pricingpri2_.M_PriceList_Version_ID inner join M_PriceList pricingpri3_ on pricingpri2_.M_PriceList_ID = pricingpri3_.M_PriceList_ID left outer join C_Currency currency4_ on pricingpri3_.C_Currency_ID = currency4_.C_Currency_ID left outer join M_Product product5_ on product1_.Generic_Product_ID = product5_.M_Product_ID inner join C_UOM uom6_ on product1_.C_UOM_ID = uom6_.C_UOM_ID where product1_.IsGeneric = 'N' and product1_.IsActive = 'Y' and pricingpri2_.IsActive = 'Y' and (product1_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (product1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and pricingpri3_.IsSOPriceList = 'Y' and currency4_.C_Currency_ID = '102' and (upper(product1_.UPC) like upper('%HP%SUPE%') or upper(product1_.Value) like upper('%HP%SUPE%') or upper(product1_.Name) like upper('%HP%SUPE%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-16 09:41:00 Duration: 1s300ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select product1_.Value as col_0_0_, product1_.M_Product_ID as col_1_0_, pricingpri2_.M_PriceList_Version_ID as col_2_0_, pricingpri2_.Name as col_3_0_, currency4_.C_Currency_ID as col_4_0_, pricingpro0_.PriceLimit as col_5_0_, product1_.Name as col_6_0_, product1_.C_UOM_ID as col_7_0_, pricingpro0_.PriceStd as col_8_0_, pricingpro0_.PriceList as col_9_0_, pricingpri3_.IsSOPriceList as col_10_0_, product1_.Characteristic_Desc as col_11_0_, product5_.Name as col_12_0_, product1_.UPC as col_13_0_, pricingpri2_.M_PriceList_Version_ID as m_pricel1_551_0_, uom6_.C_UOM_ID as c_uom_id1_324_1_, pricingpri2_.AD_Client_ID as ad_clien2_551_0_, pricingpri2_.AD_Org_ID as ad_org_i3_551_0_, pricingpri2_.IsActive as isactive4_551_0_, pricingpri2_.Created as created5_551_0_, pricingpri2_.CreatedBy as createdb6_551_0_, pricingpri2_.Updated as updated7_551_0_, pricingpri2_.UpdatedBy as updatedb8_551_0_, pricingpri2_.Name as name9_551_0_, pricingpri2_.Description as descrip10_551_0_, pricingpri2_.M_PriceList_ID as m_price11_551_0_, pricingpri2_.M_DiscountSchema_ID as m_disco12_551_0_, pricingpri2_.ValidFrom as validfr13_551_0_, pricingpri2_.ProcCreate as proccre14_551_0_, pricingpri2_.M_Pricelist_Version_Base_ID as m_price15_551_0_, pricingpri2_.M_Pricelist_Version_Generate as m_price16_551_0_, pricingpri2_.EM_Pruti_Import_Prices as em_prut17_551_0_, uom6_.AD_Client_ID as ad_clien2_324_1_, uom6_.AD_Org_ID as ad_org_i3_324_1_, uom6_.IsActive as isactive4_324_1_, uom6_.Created as created5_324_1_, uom6_.Updated as updated6_324_1_, uom6_.CreatedBy as createdb7_324_1_, uom6_.UpdatedBy as updatedb8_324_1_, uom6_.X12DE355 as x9_324_1_, uom6_.UOMSymbol as uomsymb10_324_1_, uom6_.Name as name11_324_1_, uom6_.Description as descrip12_324_1_, uom6_.StdPrecision as stdprec13_324_1_, uom6_.CostingPrecision as costing14_324_1_, uom6_.IsDefault as isdefau15_324_1_, uom6_.Breakdown as breakdo16_324_1_, uom6_.UOM_Type as uom_typ17_324_1_, uom6_.Useinproduction as useinpr18_324_1_ from M_ProductPrice pricingpro0_ inner join M_Product product1_ on pricingpro0_.M_Product_ID = product1_.M_Product_ID inner join M_PriceList_Version pricingpri2_ on pricingpro0_.M_PriceList_Version_ID = pricingpri2_.M_PriceList_Version_ID inner join M_PriceList pricingpri3_ on pricingpri2_.M_PriceList_ID = pricingpri3_.M_PriceList_ID left outer join C_Currency currency4_ on pricingpri3_.C_Currency_ID = currency4_.C_Currency_ID left outer join M_Product product5_ on product1_.Generic_Product_ID = product5_.M_Product_ID inner join C_UOM uom6_ on product1_.C_UOM_ID = uom6_.C_UOM_ID where product1_.IsGeneric = 'N' and product1_.IsActive = 'Y' and pricingpri2_.IsActive = 'Y' and (product1_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (product1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and pricingpri3_.IsSOPriceList = 'Y' and currency4_.C_Currency_ID = '102' and (upper(product1_.UPC) like upper('%ATE605%') or upper(product1_.Value) like upper('%ATE605%') or upper(product1_.Name) like upper('%ATE605%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-16 10:44:13 Duration: 1s280ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select product1_.Value as col_0_0_, product1_.M_Product_ID as col_1_0_, pricingpri2_.M_PriceList_Version_ID as col_2_0_, pricingpri2_.Name as col_3_0_, currency4_.C_Currency_ID as col_4_0_, pricingpro0_.PriceLimit as col_5_0_, product1_.Name as col_6_0_, product1_.C_UOM_ID as col_7_0_, pricingpro0_.PriceStd as col_8_0_, pricingpro0_.PriceList as col_9_0_, pricingpri3_.IsSOPriceList as col_10_0_, product1_.Characteristic_Desc as col_11_0_, product5_.Name as col_12_0_, product1_.UPC as col_13_0_, pricingpri2_.M_PriceList_Version_ID as m_pricel1_551_0_, uom6_.C_UOM_ID as c_uom_id1_324_1_, pricingpri2_.AD_Client_ID as ad_clien2_551_0_, pricingpri2_.AD_Org_ID as ad_org_i3_551_0_, pricingpri2_.IsActive as isactive4_551_0_, pricingpri2_.Created as created5_551_0_, pricingpri2_.CreatedBy as createdb6_551_0_, pricingpri2_.Updated as updated7_551_0_, pricingpri2_.UpdatedBy as updatedb8_551_0_, pricingpri2_.Name as name9_551_0_, pricingpri2_.Description as descrip10_551_0_, pricingpri2_.M_PriceList_ID as m_price11_551_0_, pricingpri2_.M_DiscountSchema_ID as m_disco12_551_0_, pricingpri2_.ValidFrom as validfr13_551_0_, pricingpri2_.ProcCreate as proccre14_551_0_, pricingpri2_.M_Pricelist_Version_Base_ID as m_price15_551_0_, pricingpri2_.M_Pricelist_Version_Generate as m_price16_551_0_, pricingpri2_.EM_Pruti_Import_Prices as em_prut17_551_0_, uom6_.AD_Client_ID as ad_clien2_324_1_, uom6_.AD_Org_ID as ad_org_i3_324_1_, uom6_.IsActive as isactive4_324_1_, uom6_.Created as created5_324_1_, uom6_.Updated as updated6_324_1_, uom6_.CreatedBy as createdb7_324_1_, uom6_.UpdatedBy as updatedb8_324_1_, uom6_.X12DE355 as x9_324_1_, uom6_.UOMSymbol as uomsymb10_324_1_, uom6_.Name as name11_324_1_, uom6_.Description as descrip12_324_1_, uom6_.StdPrecision as stdprec13_324_1_, uom6_.CostingPrecision as costing14_324_1_, uom6_.IsDefault as isdefau15_324_1_, uom6_.Breakdown as breakdo16_324_1_, uom6_.UOM_Type as uom_typ17_324_1_, uom6_.Useinproduction as useinpr18_324_1_ from M_ProductPrice pricingpro0_ inner join M_Product product1_ on pricingpro0_.M_Product_ID = product1_.M_Product_ID inner join M_PriceList_Version pricingpri2_ on pricingpro0_.M_PriceList_Version_ID = pricingpri2_.M_PriceList_Version_ID inner join M_PriceList pricingpri3_ on pricingpri2_.M_PriceList_ID = pricingpri3_.M_PriceList_ID left outer join C_Currency currency4_ on pricingpri3_.C_Currency_ID = currency4_.C_Currency_ID left outer join M_Product product5_ on product1_.Generic_Product_ID = product5_.M_Product_ID inner join C_UOM uom6_ on product1_.C_UOM_ID = uom6_.C_UOM_ID where product1_.IsGeneric = 'N' and product1_.IsActive = 'Y' and pricingpri2_.IsActive = 'Y' and (product1_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (product1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and pricingpri3_.IsSOPriceList = 'Y' and currency4_.C_Currency_ID = '102' and (upper(product1_.UPC) like upper('%HP%SUPER%%') or upper(product1_.Value) like upper('%HP%SUPER%%') or upper(product1_.Name) like upper('%HP%SUPER%%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-16 09:41:06 Duration: 1s260ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 5 5s307ms 1s22ms 1s90ms 1s61ms select businesspa0_.c_bpartner_id as c_bpartn1_189_, businesspa0_.ad_client_id as ad_clien2_189_, businesspa0_.ad_org_id as ad_org_i3_189_, businesspa0_.isactive as isactive4_189_, businesspa0_.created as created5_189_, businesspa0_.createdby as createdb6_189_, businesspa0_.updated as updated7_189_, businesspa0_.updatedby as updatedb8_189_, businesspa0_.value as value9_189_, businesspa0_.name as name10_189_, businesspa0_.name2 as name11_189_, businesspa0_.description as descrip12_189_, businesspa0_.issummary as issumma13_189_, businesspa0_.c_bp_group_id as c_bp_gr14_189_, businesspa0_.isonetime as isoneti15_189_, businesspa0_.isprospect as isprosp16_189_, businesspa0_.isvendor as isvendo17_189_, businesspa0_.iscustomer as iscusto18_189_, businesspa0_.isemployee as isemplo19_189_, businesspa0_.issalesrep as issales20_189_, businesspa0_.referenceno as referen21_189_, businesspa0_.duns as duns22_189_, businesspa0_.url as url23_189_, businesspa0_.ad_language as ad_lang24_189_, businesspa0_.taxid as taxid25_189_, businesspa0_.istaxexempt as istaxex26_189_, businesspa0_.c_invoiceschedule_id as c_invoi27_189_, businesspa0_.rating as rating28_189_, businesspa0_.salesvolume as salesvo29_189_, businesspa0_.numberemployees as numbere30_189_, businesspa0_.naics as naics31_189_, businesspa0_.firstsale as firstsa32_189_, businesspa0_.acqusitioncost as acqusit33_189_, businesspa0_.potentiallifetimevalue as potenti34_189_, businesspa0_.actuallifetimevalue as actuall35_189_, businesspa0_.shareofcustomer as shareof36_189_, businesspa0_.paymentrule as payment37_189_, businesspa0_.so_creditlimit as so_cred38_189_, businesspa0_.so_creditused as so_cred39_189_, businesspa0_.c_paymentterm_id as c_payme40_189_, businesspa0_.m_pricelist_id as m_price41_189_, businesspa0_.isdiscountprinted as isdisco42_189_, businesspa0_.so_description as so_desc43_189_, businesspa0_.poreference as porefer44_189_, businesspa0_.paymentrulepo as payment45_189_, businesspa0_.po_pricelist_id as po_pric46_189_, businesspa0_.po_paymentterm_id as po_paym47_189_, businesspa0_.documentcopies as documen48_189_, businesspa0_.c_greeting_id as c_greet49_189_, businesspa0_.invoicerule as invoice50_189_, businesspa0_.deliveryrule as deliver51_189_, businesspa0_.deliveryviarule as deliver52_189_, businesspa0_.salesrep_id as salesre53_189_, businesspa0_.bpartner_parent_id as bpartne54_189_, businesspa0_.socreditstatus as socredi55_189_, businesspa0_.ad_forced_org_id as ad_forc56_189_, businesspa0_.showpriceinorder as showpri57_189_, businesspa0_.invoicegrouping as invoice58_189_, businesspa0_.fixmonthday as fixmont59_189_, businesspa0_.fixmonthday2 as fixmont60_189_, businesspa0_.fixmonthday3 as fixmont61_189_, businesspa0_.isworker as isworke62_189_, businesspa0_.upc as upc63_189_, businesspa0_.c_salary_category_id as c_salar64_189_, businesspa0_.invoice_printformat as invoice65_189_, businesspa0_.last_days as last_da66_189_, businesspa0_.po_bankaccount_id as po_bank67_189_, businesspa0_.po_bp_taxcategory_id as po_bp_t68_189_, businesspa0_.po_fixmonthday as po_fixm69_189_, businesspa0_.po_fixmonthday2 as po_fixm70_189_, businesspa0_.po_fixmonthday3 as po_fixm71_189_, businesspa0_.so_bankaccount_id as so_bank72_189_, businesspa0_.so_bp_taxcategory_id as so_bp_t73_189_, businesspa0_.fiscalcode as fiscalc74_189_, businesspa0_.isofiscalcode as isofisc75_189_, businesspa0_.em_einv_einvoice as em_einv76_189_, businesspa0_.po_c_incoterms_id as po_c_in77_189_, businesspa0_.em_einv_format_id as em_einv78_189_, businesspa0_.so_c_incoterms_id as so_c_in79_189_, businesspa0_.em_einv_platform_id as em_einv80_189_, businesspa0_.fin_paymentmethod_id as fin_pay81_189_, businesspa0_.em_einv_email as em_einv82_189_, businesspa0_.po_paymentmethod_id as po_paym83_189_, businesspa0_.fin_financial_account_id as fin_fin84_189_, businesspa0_.em_einv_deliverymode as em_einv85_189_, businesspa0_.po_financial_account_id as po_fina86_189_, businesspa0_.customer_blocking as custome87_189_, businesspa0_.vendor_blocking as vendor_88_189_, businesspa0_.so_payment_blocking as so_paym89_189_, businesspa0_.po_payment_blocking as po_paym90_189_, businesspa0_.so_invoice_blocking as so_invo91_189_, businesspa0_.po_invoice_blocking as po_invo92_189_, businesspa0_.so_order_blocking as so_orde93_189_, businesspa0_.po_order_blocking as po_orde94_189_, businesspa0_.so_goods_blocking as so_good95_189_, businesspa0_.po_goods_blocking as po_good96_189_, businesspa0_.iscashvat as iscashv97_189_, businesspa0_.update_currency as update_98_189_, businesspa0_.bp_currency_id as bp_curr99_189_, businesspa0_.birthplace as birthp100_189_, businesspa0_.birthday as birthd101_189_, businesspa0_.is_customer_consent as is_cus102_189_, businesspa0_.em_obsepad_mandate_identifier as em_obs103_189_, businesspa0_.em_obsepad_mandate_date as em_obs104_189_, businesspa0_.is_customer_consent_papformat as is_cus105_189_, businesspa0_.em_aeatsii_rep_taxid as em_aea106_189_, businesspa0_.em_aeatsii_menor as em_aea107_189_, businesspa0_.em_pruti_addbp as em_pru108_189_, businesspa0_.em_prei_iseinvoice as em_pre109_189_, businesspa0_.em_prei_format_id as em_pre110_189_, businesspa0_.em_pruti_unlock_date as em_pru111_189_, businesspa0_.em_prei_platform_id as em_pre112_189_, businesspa0_.em_pruti_unlock_order_date as em_pru113_189_, businesspa0_.em_prei_send_method as em_pre114_189_, businesspa0_.em_pruti_annexes_bp_so_id as em_pru115_189_, businesspa0_.em_prei_email as em_pre116_189_, businesspa0_.em_pruti_annexes_bp_po_id as em_pru117_189_, businesspa0_.em_prei_need_expedient as em_pre118_189_, businesspa0_.em_aeatsii_defaultsiikey as em_aea119_189_, businesspa0_.em_aeatsii_siikeylist as em_aea120_189_, businesspa0_.em_tbai_issimplifiedinv as em_tba121_189_, businesspa0_.em_obwpl_bp_block_pickinglist as em_obw122_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru123_189_, businesspa0_.em_pruti_notsendinvoice as em_pru124_189_, businesspa0_.em_pruti_showpriceingoods as em_pru125_189_, businesspa0_.business_partner_type as busine126_189_, businesspa0_.em_obtik_tax_id_key as em_obt127_189_, businesspa0_.em_prma_update_bprecords as em_prm128_189_ from c_bpartner businesspa0_ where exists ( select ? from c_order order1_ left outer join c_bpartner businesspa2_ on order1_.c_bpartner_id = businesspa2_.c_bpartner_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.poreference), ?) || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?))) like upper(?) escape ?) and businesspa2_.c_bpartner_id = businesspa0_.c_bpartner_id and (order1_.ad_org_id in (...)) and (order1_.ad_client_id in (...))) order by businesspa0_.value, businesspa0_.name limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 16 08 2 2s145ms 1s72ms 12 2 2s71ms 1s35ms 17 1 1s90ms 1s90ms [ User: tad - Total duration: 5s307ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 5s307ms - Times executed: 5 ]
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.Is_Customer_Consent_PapFormat as is_cus105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Prei_Iseinvoice as em_pre109_189_, businesspa0_.EM_Prei_Format_ID as em_pre110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Prei_Platform_ID as em_pre112_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru113_189_, businesspa0_.EM_Prei_Send_Method as em_pre114_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru115_189_, businesspa0_.EM_Prei_Email as em_pre116_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru117_189_, businesspa0_.EM_Prei_Need_Expedient as em_pre118_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea119_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea120_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba121_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw122_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru123_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru124_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru125_189_, businesspa0_.business_partner_type as busine126_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt127_189_, businesspa0_.em_prma_update_BpRecords as em_prm128_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ left outer join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.POReference), '') || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%ILU%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (order1_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0'))) order by businesspa0_.Value, businesspa0_.Name limit '76';
Date: 2026-07-16 17:12:09 Duration: 1s90ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.Is_Customer_Consent_PapFormat as is_cus105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Prei_Iseinvoice as em_pre109_189_, businesspa0_.EM_Prei_Format_ID as em_pre110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Prei_Platform_ID as em_pre112_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru113_189_, businesspa0_.EM_Prei_Send_Method as em_pre114_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru115_189_, businesspa0_.EM_Prei_Email as em_pre116_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru117_189_, businesspa0_.EM_Prei_Need_Expedient as em_pre118_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea119_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea120_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba121_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw122_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru123_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru124_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru125_189_, businesspa0_.business_partner_type as busine126_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt127_189_, businesspa0_.em_prma_update_BpRecords as em_prm128_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ left outer join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.POReference), '') || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%fcc%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (order1_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0'))) order by businesspa0_.Value, businesspa0_.Name limit '76';
Date: 2026-07-16 08:25:37 Duration: 1s82ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.Is_Customer_Consent_PapFormat as is_cus105_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea106_189_, businesspa0_.EM_Aeatsii_Menor as em_aea107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Prei_Iseinvoice as em_pre109_189_, businesspa0_.EM_Prei_Format_ID as em_pre110_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru111_189_, businesspa0_.EM_Prei_Platform_ID as em_pre112_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru113_189_, businesspa0_.EM_Prei_Send_Method as em_pre114_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru115_189_, businesspa0_.EM_Prei_Email as em_pre116_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru117_189_, businesspa0_.EM_Prei_Need_Expedient as em_pre118_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea119_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea120_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba121_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw122_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru123_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru124_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru125_189_, businesspa0_.business_partner_type as busine126_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt127_189_, businesspa0_.em_prma_update_BpRecords as em_prm128_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ left outer join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.POReference), '') || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%ses%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (order1_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0'))) order by businesspa0_.Value, businesspa0_.Name limit '76';
Date: 2026-07-16 08:24:00 Duration: 1s62ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 4 12s347ms 2s167ms 4s884ms 3s86ms insert into fact_acct (fact_acct_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_acctschema_id, account_id, datetrx, dateacct, c_period_id, ad_table_id, record_id, postingtype, c_currency_id, amtsourcedr, amtsourcecr, amtacctdr, amtacctcr, fact_acct_group_id, seqno, factaccttype, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, description, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id) select get_uuid (), ?, ?, ?, now(), ?, now(), ?, c_acctschema_id, account_id, to_date(?), to_date(?), ?, ?, ?, ?, ?, ( case sign(sum(amtacctcr) - sum(amtacctdr)) when ? then ? else (sum(amtacctcr) - sum(amtacctdr)) end), ( case sign(sum(amtacctdr) - sum(amtacctcr)) when ? then ? else (sum(amtacctdr) - sum(amtacctcr)) end), ( case sign(sum(amtacctcr) - sum(amtacctdr)) when ? then ? else (sum(amtacctcr) - sum(amtacctdr)) end), ( case sign(sum(amtacctdr) - sum(amtacctcr)) when ? then ? else (sum(amtacctdr) - sum(amtacctcr)) end), ?, to_number(?), ?, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, ?, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id from fact_acct where exists ( select ? from c_period p where p.c_year_id = ? and p.c_period_id = fact_acct.c_period_id) and exists ( select ? from c_elementvalue where c_elementvalue.accounttype in (...) and account_id = c_elementvalue_id) and ad_org_id = ? and c_acctschema_id = ? and (factaccttype <> ? or fact_acct_group_id = ?) group by account_id, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id, c_acctschema_id having sum(amtacctdr) - sum(amtacctcr) <> ? order by acctvalue;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 13 4 12s347ms 3s86ms [ User: tad - Total duration: 12s347ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 12s347ms - Times executed: 4 ]
-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCEDR, AMTSOURCECR, AMTACCTDR, AMTACCTCR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), 'FF80818133B7413E0133B7164D6A0002', 'FF80818133B7413E0133B71974AD28C6', 'Y', now(), 'AB6C0034255E4370A86E2E985B7BD43D', now(), 'AB6C0034255E4370A86E2E985B7BD43D', C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date('31-12-2025'), to_date('31-12-2025'), 'FE11860E104540C885746AD9D3270D31', '145', 'FE11860E104540C885746AD9D3270D31', 'A', '102', ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), '690F1146CD504A708CB12DEB0BFF370C', to_number('20'), 'R', ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, 'Entrada de regularización', C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = '6E291C21988F4D90AC2C4FD9E7DDE383' AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('R') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = 'FF80818133B7413E0133B71974AD28C6' AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = NULL) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:30 Duration: 4s884ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCEDR, AMTSOURCECR, AMTACCTDR, AMTACCTCR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), 'FF80818133B7413E0133B7164D6A0002', 'FF80818133B7413E0133B71974AD28C6', 'Y', now(), 'AB6C0034255E4370A86E2E985B7BD43D', now(), 'AB6C0034255E4370A86E2E985B7BD43D', C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date('31-12-2025'), to_date('31-12-2025'), 'FE11860E104540C885746AD9D3270D31', '145', 'FE11860E104540C885746AD9D3270D31', 'A', '102', ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), '690F1146CD504A708CB12DEB0BFF370C', to_number('10'), 'R', ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, 'Entrada de regularización', C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = '6E291C21988F4D90AC2C4FD9E7DDE383' AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('E') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = 'FF80818133B7413E0133B71974AD28C6' AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = NULL) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:25 Duration: 2s747ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCEDR, AMTSOURCECR, AMTACCTDR, AMTACCTCR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), 'FF80818133B7413E0133B7164D6A0002', 'FF80818133B7413E0133B71974AD28C6', 'Y', now(), 'AB6C0034255E4370A86E2E985B7BD43D', now(), 'AB6C0034255E4370A86E2E985B7BD43D', C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date('31-12-2025'), to_date('31-12-2025'), 'FE11860E104540C885746AD9D3270D31', '145', 'FE11860E104540C885746AD9D3270D31', 'A', '102', ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), '1FD4747E10A74BF798CF3D8517ABAB0C', to_number('20'), 'C', ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, 'Cerrando entrada', C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = '6E291C21988F4D90AC2C4FD9E7DDE383' AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('A') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = 'FF80818133B7413E0133B71974AD28C6' AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = NULL) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:32 Duration: 2s549ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 4 9s334ms 2s3ms 3s221ms 2s333ms select a.id, ev.value as account_id, coalesce(ev_trl.name, ev.name) as name, a.initialamt as saldo_inicial, a.amtacctcr, a.amtacctdr, a.initialamt + a.amtacctdr - a.amtacctcr as saldo_final, a.groupbyid, case ad_column_identifier (?, groupbyid, to_char(?)) when ? then ? else ad_column_identifier (?, groupbyid, to_char(?)) end as groupbyname from ( select sum( case when (dateacct < to_date(?) or (dateacct = to_date(?) and f.factaccttype = ?)) then f.amtacctdr - f.amtacctcr else ? end) as initialamt, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctdr else ? end) as amtacctdr, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctcr else ? end) as amtacctcr, f.account_id as id, to_char(?) as groupbyid from fact_acct f where f.ad_org_id in (...) and f.ad_client_id in (...) and f.ad_org_id in (...) and dateacct < to_date(?) and ? = ? and f.c_acctschema_id = ? and f.isactive = ? group by f.account_id) a left join c_elementvalue ev on a.id = ev.c_elementvalue_id left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? where ev.elementlevel = ? and ? = ? and (a.initialamt <> ? or a.amtacctcr <> ? or a.amtacctdr <> ?) order by ev.value, ev.name, id, groupbyname;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 16 13 4 9s334ms 2s333ms [ User: tad - Total duration: 9s334ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 9s334ms - Times executed: 4 ]
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2025') or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND DATEACCT < TO_DATE('01-04-2025') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-16 13:09:19 Duration: 3s221ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2025') or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND DATEACCT < TO_DATE('01-01-2026') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-16 13:11:25 Duration: 2s87ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2025') or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND DATEACCT < TO_DATE('01-07-2025') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-16 13:10:21 Duration: 2s21ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 4 6s901ms 1s24ms 3s493ms 1s725ms select * from ( select distinct ad_column_identifier (?, fin_payment_schedule.c_invoice_id, ?) as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = ? group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, ?)) order by ?) 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 #13
Day Hour Count Duration Avg duration Jul 16 14 1 1s214ms 1s214ms 15 1 1s168ms 1s168ms 16 1 3s493ms 3s493ms 17 1 1s24ms 1s24ms [ User: tad - Total duration: 6s901ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 6s901ms - Times executed: 4 ]
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 16:00:05 Duration: 3s493ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 14:00:03 Duration: 1s214ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 15:00:02 Duration: 1s168ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 3 25s252ms 6s991ms 11s254ms 8s417ms select c_order_post1 (null, ?, ?) as result from dual;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 16 08 1 11s254ms 11s254ms 12 2 13s997ms 6s998ms [ User: tad - Total duration: 25s252ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 25s252ms - Times executed: 3 ]
-
SELECT c_order_post1 (NULL, '7F75B8BF2EA94E0C94F83178CE55102A', 'N') AS RESULT FROM DUAL;
Date: 2026-07-16 08:16:56 Duration: 11s254ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, 'CEEC7D5C133646B5846B35104A3AF91A', 'N') AS RESULT FROM DUAL;
Date: 2026-07-16 12:34:55 Duration: 7s6ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, '0805CCED0BCF45F6987F170594F0F8D7', 'N') AS RESULT FROM DUAL;
Date: 2026-07-16 12:35:46 Duration: 6s991ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 3 6s305ms 2s80ms 2s114ms 2s101ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 16 10 3 6s305ms 2s101ms [ User: tad - Total duration: 6s305ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s305ms - Times executed: 3 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3586%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:29 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/35%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:28 Duration: 2s110ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/358%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:29 Duration: 2s80ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 3 6s267ms 2s29ms 2s136ms 2s89ms select invoicecan0_.c_order_id as col_0_0_, organizati2_.name as col_1_0_, invoicecan0_.c_doctype_id as col_2_0_, invoicecan0_.documentno as col_3_0_, businesspa3_.name as col_4_0_, invoicecan0_.dateordered as col_5_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end as col_6_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end as col_7_0_, invoicecan0_.term as col_8_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? then case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then ?.? else invoicecan0_.pendinglines end as col_9_0_, invoicecan0_.qtyordered as col_10_0_, invoicecan0_.qtydelivered as col_11_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end - ( case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end) as col_12_0_, invoicecan0_.amountlinesgross as col_13_0_, invoicecan0_.created as col_14_0_, invoicecan0_.createdby as col_15_0_, invoicecan0_.updated as col_16_0_, invoicecan0_.updatedby as col_17_0_, documentty4_.c_doctype_id as c_doctyp1_224_0_, aduser5_.ad_user_id as ad_user_1_129_1_, aduser6_.ad_user_id as ad_user_1_129_2_, documentty4_.ad_client_id as ad_clien2_224_0_, documentty4_.ad_org_id as ad_org_i3_224_0_, documentty4_.isactive as isactive4_224_0_, documentty4_.created as created5_224_0_, documentty4_.createdby as createdb6_224_0_, documentty4_.updated as updated7_224_0_, documentty4_.updatedby as updatedb8_224_0_, documentty4_.name as name9_224_0_, documentty4_.printname as printna10_224_0_, documentty4_.description as descrip11_224_0_, documentty4_.docbasetype as docbase12_224_0_, documentty4_.issotrx as issotrx13_224_0_, documentty4_.docsubtypeso as docsubt14_224_0_, documentty4_.c_doctypeshipment_id as c_docty15_224_0_, documentty4_.c_doctypeinvoice_id as c_docty16_224_0_, documentty4_.isdocnocontrolled as isdocno17_224_0_, documentty4_.docnosequence_id as docnose18_224_0_, documentty4_.gl_category_id as gl_cate19_224_0_, documentty4_.documentnote as documen20_224_0_, documentty4_.isdefault as isdefau21_224_0_, documentty4_.documentcopies as documen22_224_0_, documentty4_.ad_table_id as ad_tabl23_224_0_, documentty4_.orgfiltered as orgfilt24_224_0_, documentty4_.c_doctype_reversed_id as c_docty25_224_0_, documentty4_.em_intr_transaction_type as em_intr26_224_0_, documentty4_.isexpense as isexpen27_224_0_, documentty4_.em_intr_statistical_regime as em_intr28_224_0_, documentty4_.isreversal as isrever29_224_0_, documentty4_.isreturn as isretur30_224_0_, documentty4_.c_doctypeorder_id as c_docty31_224_0_, documentty4_.c_doctypesimpinvoice_id as c_docty32_224_0_, documentty4_.em_obwpl_useoutbound as em_obwp33_224_0_, documentty4_.em_prouti_c_doctypeorder_id as em_prou34_224_0_, documentty4_.c_doctypeaggrinvoice_id as c_docty35_224_0_, documentty4_.em_obwpl_isgroup as em_obwp36_224_0_, documentty4_.em_obwpl_generateshipment as em_obwp37_224_0_, documentty4_.em_tbai_ad_sequence_id as em_tbai38_224_0_, documentty4_.em_etvfac_inv_type as em_etvf39_224_0_, documentty4_.em_obwpl_shipmentdoctype_id as em_obwp40_224_0_, documentty4_.em_etvfac_verifac_desc as em_etvf41_224_0_, documentty4_.em_etvfac_external_ref as em_etvf42_224_0_, documentty4_.em_etvfac_simpinvart7273 as em_etvf43_224_0_, documentty4_.em_etvfac_invnoidart61d as em_etvf44_224_0_, documentty4_.em_prwss_is_ws_type as em_prws45_224_0_, documentty4_.em_etvfac_reverseinvtype as em_etvf46_224_0_, documentty4_.em_etsg_isrectificative as em_etsg47_224_0_, documentty4_.em_pruti_inforeport2 as em_prut48_224_0_, documentty4_.em_pruti_inforeport as em_prut49_224_0_, documentty4_.em_pruti_inforeport3 as em_prut50_224_0_, documentty4_.em_pruti_image_id as em_prut51_224_0_, documentty4_.em_pruti_image2_id as em_prut52_224_0_, documentty4_.em_pruti_email as em_prut53_224_0_, documentty4_.em_pruti_url as em_prut54_224_0_, documentty4_.em_pruti_phone as em_prut55_224_0_, documentty4_.em_pruti_phone2 as em_prut56_224_0_, documentty4_.em_pruti_fax as em_prut57_224_0_, aduser5_.ad_client_id as ad_clien2_129_1_, aduser5_.ad_org_id as ad_org_i3_129_1_, aduser5_.isactive as isactive4_129_1_, aduser5_.created as created5_129_1_, aduser5_.createdby as createdb6_129_1_, aduser5_.updated as updated7_129_1_, aduser5_.updatedby as updatedb8_129_1_, aduser5_.name as name9_129_1_, aduser5_.description as descrip10_129_1_, aduser5_.password as passwor11_129_1_, aduser5_.email as email12_129_1_, aduser5_.supervisor_id as supervi13_129_1_, aduser5_.c_bpartner_id as c_bpart14_129_1_, aduser5_.processing as process15_129_1_, aduser5_.emailuser as emailus16_129_1_, aduser5_.emailuserpw as emailus17_129_1_, aduser5_.c_bpartner_location_id as c_bpart18_129_1_, aduser5_.c_greeting_id as c_greet19_129_1_, aduser5_.title as title20_129_1_, aduser5_.comments as comment21_129_1_, aduser5_.phone as phone22_129_1_, aduser5_.phone2 as phone23_129_1_, aduser5_.fax as fax24_129_1_, aduser5_.lastcontact as lastcon25_129_1_, aduser5_.lastresult as lastres26_129_1_, aduser5_.birthday as birthda27_129_1_, aduser5_.ad_orgtrx_id as ad_orgt28_129_1_, aduser5_.firstname as firstna29_129_1_, aduser5_.lastname as lastnam30_129_1_, aduser5_.username as usernam31_129_1_, aduser5_.default_ad_client_id as default32_129_1_, aduser5_.default_ad_language as default33_129_1_, aduser5_.default_ad_org_id as default34_129_1_, aduser5_.default_ad_role_id as default35_129_1_, aduser5_.default_m_warehouse_id as default36_129_1_, aduser5_.islocked as islocke37_129_1_, aduser5_.ad_image_id as ad_imag38_129_1_, aduser5_.grant_portal_access as grant_p39_129_1_, aduser5_.lastpasswordupdate as lastpas40_129_1_, aduser5_.isexpiredpassword as isexpir41_129_1_, aduser5_.em_obpos_default_pos_role as em_obpo42_129_1_, aduser5_.commercialauth as commerc43_129_1_, aduser5_.viasms as viasms44_129_1_, aduser5_.viaemail as viaemai45_129_1_, aduser5_.em_pruti_isbillingcontact as em_prut46_129_1_, aduser5_.em_pruti_isordercontact as em_prut47_129_1_, aduser5_.em_smfsws_default_ws_role_id as em_smfs48_129_1_, aduser5_.em_pruti_ispurchaseordcontact as em_prut49_129_1_, aduser5_.em_pruti_isshipmentcontact as em_prut50_129_1_, aduser5_.em_primpa_iscontact as em_prim51_129_1_, aduser5_.em_obretco_default_pos_contact as em_obre52_129_1_, aduser6_.ad_client_id as ad_clien2_129_2_, aduser6_.ad_org_id as ad_org_i3_129_2_, aduser6_.isactive as isactive4_129_2_, aduser6_.created as created5_129_2_, aduser6_.createdby as createdb6_129_2_, aduser6_.updated as updated7_129_2_, aduser6_.updatedby as updatedb8_129_2_, aduser6_.name as name9_129_2_, aduser6_.description as descrip10_129_2_, aduser6_.password as passwor11_129_2_, aduser6_.email as email12_129_2_, aduser6_.supervisor_id as supervi13_129_2_, aduser6_.c_bpartner_id as c_bpart14_129_2_, aduser6_.processing as process15_129_2_, aduser6_.emailuser as emailus16_129_2_, aduser6_.emailuserpw as emailus17_129_2_, aduser6_.c_bpartner_location_id as c_bpart18_129_2_, aduser6_.c_greeting_id as c_greet19_129_2_, aduser6_.title as title20_129_2_, aduser6_.comments as comment21_129_2_, aduser6_.phone as phone22_129_2_, aduser6_.phone2 as phone23_129_2_, aduser6_.fax as fax24_129_2_, aduser6_.lastcontact as lastcon25_129_2_, aduser6_.lastresult as lastres26_129_2_, aduser6_.birthday as birthda27_129_2_, aduser6_.ad_orgtrx_id as ad_orgt28_129_2_, aduser6_.firstname as firstna29_129_2_, aduser6_.lastname as lastnam30_129_2_, aduser6_.username as usernam31_129_2_, aduser6_.default_ad_client_id as default32_129_2_, aduser6_.default_ad_language as default33_129_2_, aduser6_.default_ad_org_id as default34_129_2_, aduser6_.default_ad_role_id as default35_129_2_, aduser6_.default_m_warehouse_id as default36_129_2_, aduser6_.islocked as islocke37_129_2_, aduser6_.ad_image_id as ad_imag38_129_2_, aduser6_.grant_portal_access as grant_p39_129_2_, aduser6_.lastpasswordupdate as lastpas40_129_2_, aduser6_.isexpiredpassword as isexpir41_129_2_, aduser6_.em_obpos_default_pos_role as em_obpo42_129_2_, aduser6_.commercialauth as commerc43_129_2_, aduser6_.viasms as viasms44_129_2_, aduser6_.viaemail as viaemai45_129_2_, aduser6_.em_pruti_isbillingcontact as em_prut46_129_2_, aduser6_.em_pruti_isordercontact as em_prut47_129_2_, aduser6_.em_smfsws_default_ws_role_id as em_smfs48_129_2_, aduser6_.em_pruti_ispurchaseordcontact as em_prut49_129_2_, aduser6_.em_pruti_isshipmentcontact as em_prut50_129_2_, aduser6_.em_primpa_iscontact as em_prim51_129_2_, aduser6_.em_obretco_default_pos_contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join c_order order1_ on invoicecan0_.c_order_id = order1_.c_order_id inner join ad_org organizati2_ on invoicecan0_.ad_org_id = organizati2_.ad_org_id inner join c_bpartner businesspa3_ on invoicecan0_.c_bpartner_id = businesspa3_.c_bpartner_id inner join c_doctype documentty4_ on invoicecan0_.c_doctype_id = documentty4_.c_doctype_id inner join ad_user aduser5_ on invoicecan0_.createdby = aduser5_.ad_user_id inner join ad_user aduser6_ on invoicecan0_.updatedby = aduser6_.ad_user_id where (invoicecan0_.term = ? and invoicecan0_.qtydelivered <> ? and (? = ? and (exists ( select ? from c_orderline orderline7_ where orderline7_.c_order_id = order1_.c_order_id and orderline7_.qtydelivered - orderline7_.qtyinvoiced <> ?)) or ? = ?) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline8_ where orderline8_.c_order_id = order1_.c_order_id and orderline8_.qtyordered - orderline8_.qtyinvoiced <> ?)) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline9_ where orderline9_.c_order_id = order1_.c_order_id and orderline9_.qtydelivered <> ? and orderline9_.qtydelivered <> orderline9_.qtyinvoiced)) or invoicecan0_.term = ? and invoicecan0_.qtyordered = invoicecan0_.qtydelivered) and (invoicecan0_.ad_client_id in (...)) and (invoicecan0_.ad_org_id in (...)) order by organizati2_.name, businesspa3_.name, invoicecan0_.dateordered limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 16 12 1 2s29ms 2s29ms 17 2 4s238ms 2s119ms [ User: tad - Total duration: 6s267ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s267ms - Times executed: 3 ]
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:06:50 Duration: 2s136ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:32:10 Duration: 2s101ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 12:45:26 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 3 4s877ms 1s356ms 2s61ms 1s625ms select max(financialm0_.fact_acct_id) as col_0_0_, financialm0_.ad_client_id as col_1_0_, financialm4_.ad_org_id as col_2_0_, max(financialm0_.created) as col_3_0_, max(financialm0_.createdby) as col_4_0_, max(financialm0_.updated) as col_5_0_, max(financialm0_.updatedby) as col_6_0_, max(financialm0_.isactive) as col_7_0_, max(financialm0_.fact_acct_id) as col_8_0_, max(financialm0_.description) as col_9_0_, financialm4_.c_periodcontrol_id as col_10_0_, ( select financialm5_.name from c_acctschema financialm5_ where financialm0_.c_acctschema_id = financialm5_.c_acctschema_id) as col_11_0_, ( select financialm6_.value from c_elementvalue financialm6_ where financialm0_.account_id = financialm6_.c_elementvalue_id) as col_12_0_, financialm0_.factaccttype as col_13_0_, case when sum(financialm0_.amtacctdr - financialm0_.amtacctcr) > ? then sum(financialm0_.amtacctdr - financialm0_.amtacctcr) else ? end as col_14_0_, case when sum(financialm0_.amtacctcr - financialm0_.amtacctdr) > ? then sum(financialm0_.amtacctcr - financialm0_.amtacctdr) else ? end as col_15_0_ from fact_acct financialm0_ inner join c_period financialm1_ on financialm0_.c_period_id = financialm1_.c_period_id inner join ad_org organizati2_ on financialm0_.ad_org_id = organizati2_.ad_org_id cross join c_period financialm3_ inner join c_periodcontrol financialm4_ on financialm3_.c_period_id = financialm4_.c_period_id where (financialm0_.factaccttype in (...)) and financialm1_.c_year_id = financialm3_.c_year_id and financialm4_.ad_org_id = organizati2_.ad_periodcontrolallowed_org_id and (financialm0_.ad_client_id in (...)) and (financialm0_.ad_org_id in (...)) and financialm4_.c_periodcontrol_id = ? group by financialm0_.ad_client_id, financialm4_.c_periodcontrol_id, financialm0_.c_acctschema_id, financialm0_.account_id, financialm0_.factaccttype, financialm1_.c_year_id, financialm4_.ad_org_id having sum(financialm0_.amtacctcr - financialm0_.amtacctdr) <> ? order by financialm0_.factaccttype desc, col_14_0_ desc, col_15_0_ desc limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 16 13 3 4s877ms 1s625ms [ User: tad - Total duration: 4s877ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s877ms - Times executed: 3 ]
-
select max(financialm0_.Fact_Acct_ID) as col_0_0_, financialm0_.AD_Client_ID as col_1_0_, financialm4_.AD_Org_ID as col_2_0_, max(financialm0_.Created) as col_3_0_, max(financialm0_.CreatedBy) as col_4_0_, max(financialm0_.Updated) as col_5_0_, max(financialm0_.UpdatedBy) as col_6_0_, max(financialm0_.IsActive) as col_7_0_, max(financialm0_.Fact_Acct_ID) as col_8_0_, max(financialm0_.Description) as col_9_0_, financialm4_.C_PeriodControl_ID as col_10_0_, ( select financialm5_.Name from C_AcctSchema financialm5_ where financialm0_.C_AcctSchema_ID = financialm5_.C_AcctSchema_ID) as col_11_0_, ( select financialm6_.Value from C_ElementValue financialm6_ where financialm0_.Account_ID = financialm6_.C_ElementValue_ID) as col_12_0_, financialm0_.FactAcctType as col_13_0_, case when sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) > 0 then sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) else 0 end as col_14_0_, case when sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) > 0 then sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) else 0 end as col_15_0_ from Fact_Acct financialm0_ inner join C_Period financialm1_ on financialm0_.C_Period_ID = financialm1_.C_Period_ID inner join AD_Org organizati2_ on financialm0_.AD_Org_ID = organizati2_.AD_Org_ID cross join C_Period financialm3_ inner join C_PeriodControl financialm4_ on financialm3_.C_Period_ID = financialm4_.C_Period_ID where (financialm0_.FactAcctType in ('O', 'C', 'D', 'R')) and financialm1_.C_Year_ID = financialm3_.C_Year_ID and financialm4_.AD_Org_ID = organizati2_.AD_Periodcontrolallowed_Org_ID and (financialm0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (financialm0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and financialm4_.C_PeriodControl_ID = 'FF610BDCC0444034B64F282137C0D2D8' group by financialm0_.AD_Client_ID, financialm4_.C_PeriodControl_ID, financialm0_.C_AcctSchema_ID, financialm0_.Account_ID, financialm0_.FactAcctType, financialm1_.C_Year_ID, financialm4_.AD_Org_ID having sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) <> 0 order by financialm0_.FactAcctType DESC, col_14_0_ DESC, col_15_0_ DESC limit '101';
Date: 2026-07-16 13:17:10 Duration: 2s61ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select max(financialm0_.Fact_Acct_ID) as col_0_0_, financialm0_.AD_Client_ID as col_1_0_, financialm4_.AD_Org_ID as col_2_0_, max(financialm0_.Created) as col_3_0_, max(financialm0_.CreatedBy) as col_4_0_, max(financialm0_.Updated) as col_5_0_, max(financialm0_.UpdatedBy) as col_6_0_, max(financialm0_.IsActive) as col_7_0_, max(financialm0_.Fact_Acct_ID) as col_8_0_, max(financialm0_.Description) as col_9_0_, financialm4_.C_PeriodControl_ID as col_10_0_, ( select financialm5_.Name from C_AcctSchema financialm5_ where financialm0_.C_AcctSchema_ID = financialm5_.C_AcctSchema_ID) as col_11_0_, ( select financialm6_.Value from C_ElementValue financialm6_ where financialm0_.Account_ID = financialm6_.C_ElementValue_ID) as col_12_0_, financialm0_.FactAcctType as col_13_0_, case when sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) > 0 then sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) else 0 end as col_14_0_, case when sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) > 0 then sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) else 0 end as col_15_0_ from Fact_Acct financialm0_ inner join C_Period financialm1_ on financialm0_.C_Period_ID = financialm1_.C_Period_ID inner join AD_Org organizati2_ on financialm0_.AD_Org_ID = organizati2_.AD_Org_ID cross join C_Period financialm3_ inner join C_PeriodControl financialm4_ on financialm3_.C_Period_ID = financialm4_.C_Period_ID where (financialm0_.FactAcctType in ('O', 'C', 'D', 'R')) and financialm1_.C_Year_ID = financialm3_.C_Year_ID and financialm4_.AD_Org_ID = organizati2_.AD_Periodcontrolallowed_Org_ID and (financialm0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (financialm0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and financialm4_.C_PeriodControl_ID = 'FF610BDCC0444034B64F282137C0D2D8' group by financialm0_.AD_Client_ID, financialm4_.C_PeriodControl_ID, financialm0_.C_AcctSchema_ID, financialm0_.Account_ID, financialm0_.FactAcctType, financialm1_.C_Year_ID, financialm4_.AD_Org_ID having sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) <> 0 order by financialm0_.FactAcctType DESC, col_14_0_ DESC, col_15_0_ DESC limit '101';
Date: 2026-07-16 13:17:40 Duration: 1s460ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select max(financialm0_.Fact_Acct_ID) as col_0_0_, financialm0_.AD_Client_ID as col_1_0_, financialm4_.AD_Org_ID as col_2_0_, max(financialm0_.Created) as col_3_0_, max(financialm0_.CreatedBy) as col_4_0_, max(financialm0_.Updated) as col_5_0_, max(financialm0_.UpdatedBy) as col_6_0_, max(financialm0_.IsActive) as col_7_0_, max(financialm0_.Fact_Acct_ID) as col_8_0_, max(financialm0_.Description) as col_9_0_, financialm4_.C_PeriodControl_ID as col_10_0_, ( select financialm5_.Name from C_AcctSchema financialm5_ where financialm0_.C_AcctSchema_ID = financialm5_.C_AcctSchema_ID) as col_11_0_, ( select financialm6_.Value from C_ElementValue financialm6_ where financialm0_.Account_ID = financialm6_.C_ElementValue_ID) as col_12_0_, financialm0_.FactAcctType as col_13_0_, case when sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) > 0 then sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) else 0 end as col_14_0_, case when sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) > 0 then sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) else 0 end as col_15_0_ from Fact_Acct financialm0_ inner join C_Period financialm1_ on financialm0_.C_Period_ID = financialm1_.C_Period_ID inner join AD_Org organizati2_ on financialm0_.AD_Org_ID = organizati2_.AD_Org_ID cross join C_Period financialm3_ inner join C_PeriodControl financialm4_ on financialm3_.C_Period_ID = financialm4_.C_Period_ID where (financialm0_.FactAcctType in ('O', 'C', 'D', 'R')) and financialm1_.C_Year_ID = financialm3_.C_Year_ID and financialm4_.AD_Org_ID = organizati2_.AD_Periodcontrolallowed_Org_ID and (financialm0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (financialm0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and financialm4_.C_PeriodControl_ID = 'FF610BDCC0444034B64F282137C0D2D8' group by financialm0_.AD_Client_ID, financialm4_.C_PeriodControl_ID, financialm0_.C_AcctSchema_ID, financialm0_.Account_ID, financialm0_.FactAcctType, financialm1_.C_Year_ID, financialm4_.AD_Org_ID having sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) <> 0 order by financialm0_.FactAcctType DESC, col_14_0_ DESC, col_15_0_ DESC limit '101';
Date: 2026-07-16 13:17:16 Duration: 1s356ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 3 3s245ms 1s49ms 1s122ms 1s81ms select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> ? or coalesce(sd.qtyorderonhand, ?) <> ? union all select m_product_id, null, ?, ? from m_product p where p.isgeneric = ?) as ps where ((ps.qtyonhand <> ? and exists ( select ? from m_locator ml where ml.m_locator_id = ps.m_locator_id and exists ( select ? from ad_org_warehouse ow where ml.m_warehouse_id = ow.m_warehouse_id and ow.ad_org_id in (...)))) or (exists ( select ? from m_product mp where ps.m_product_id = mp.m_product_id and mp.isstocked = ? and mp.producttype = ? and ad_client_id = ?))) and not exists ( select ? from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = ?) and exists ( select ? from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = ? and mp.producttype = ? and ad_client_id = ?);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 16 07 1 1s122ms 1s122ms 13 1 1s73ms 1s73ms 21 1 1s49ms 1s49ms [ User: tad - Total duration: 3s245ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s245ms - Times executed: 3 ]
-
select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> 0 OR COALESCE(sd.qtyorderonhand, 0) <> 0 union ALL select m_product_id, null, 0, 0 FROM m_product p WHERE p.isgeneric = 'N') as ps where ((ps.qtyonhand <> 0 AND EXISTS ( SELECT 1 FROM m_locator ml WHERE ml.m_locator_id = ps.m_locator_id AND EXISTS ( SELECT 1 FROM AD_Org_Warehouse ow WHERE ml.m_warehouse_id = ow.m_warehouse_id AND ow.ad_org_id IN ('FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6')))) OR (EXISTS ( SELECT 1 FROM m_product mp WHERE ps.m_product_id = mp.m_product_id AND mp.isstocked = 'N' AND mp.producttype = 'I' AND ad_client_id = 'FF80818133B7413E0133B7164D6A0002'))) AND NOT EXISTS ( select 1 from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = '52ABADF5F9C04311B0A0E8FD21244670') AND exists ( select 1 from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = 'Y' and mp.producttype = 'I' and ad_client_id = 'FF80818133B7413E0133B7164D6A0002');
Date: 2026-07-16 07:00:01 Duration: 1s122ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> 0 OR COALESCE(sd.qtyorderonhand, 0) <> 0 union ALL select m_product_id, null, 0, 0 FROM m_product p WHERE p.isgeneric = 'N') as ps where ((ps.qtyonhand <> 0 AND EXISTS ( SELECT 1 FROM m_locator ml WHERE ml.m_locator_id = ps.m_locator_id AND EXISTS ( SELECT 1 FROM AD_Org_Warehouse ow WHERE ml.m_warehouse_id = ow.m_warehouse_id AND ow.ad_org_id IN ('FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6')))) OR (EXISTS ( SELECT 1 FROM m_product mp WHERE ps.m_product_id = mp.m_product_id AND mp.isstocked = 'N' AND mp.producttype = 'I' AND ad_client_id = 'FF80818133B7413E0133B7164D6A0002'))) AND NOT EXISTS ( select 1 from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = '52ABADF5F9C04311B0A0E8FD21244670') AND exists ( select 1 from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = 'Y' and mp.producttype = 'I' and ad_client_id = 'FF80818133B7413E0133B7164D6A0002');
Date: 2026-07-16 13:00:01 Duration: 1s73ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> 0 OR COALESCE(sd.qtyorderonhand, 0) <> 0 union ALL select m_product_id, null, 0, 0 FROM m_product p WHERE p.isgeneric = 'N') as ps where ((ps.qtyonhand <> 0 AND EXISTS ( SELECT 1 FROM m_locator ml WHERE ml.m_locator_id = ps.m_locator_id AND EXISTS ( SELECT 1 FROM AD_Org_Warehouse ow WHERE ml.m_warehouse_id = ow.m_warehouse_id AND ow.ad_org_id IN ('FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6')))) OR (EXISTS ( SELECT 1 FROM m_product mp WHERE ps.m_product_id = mp.m_product_id AND mp.isstocked = 'N' AND mp.producttype = 'I' AND ad_client_id = 'FF80818133B7413E0133B7164D6A0002'))) AND NOT EXISTS ( select 1 from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = '52ABADF5F9C04311B0A0E8FD21244670') AND exists ( select 1 from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = 'Y' and mp.producttype = 'I' and ad_client_id = 'FF80818133B7413E0133B7164D6A0002');
Date: 2026-07-16 21:00:01 Duration: 1s49ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 2 4s548ms 2s235ms 2s312ms 2s274ms select id, sum(qty) as qty, sum(qtycredit) as qtycredit, sum(qty_ref) as qty_ref, sum(qtycredit_ref) as qtycredit_ref from ( select m.c_elementvalue_id as id, (coalesce(f.amtacctdr, ?) - coalesce(f.amtacctcr, ?)) as qty, (coalesce(f.amtacctcr, ?) - coalesce(f.amtacctdr, ?)) as qtycredit, ? as qty_ref, ? as qtycredit_ref from c_elementvalue m, fact_acct f, c_period p, c_year y where m.ad_org_id in (...) and m.ad_client_id in (...) and ? = ? and f.c_acctschema_id = ? and f.factaccttype <> ? and f.factaccttype <> ? and m.c_elementvalue_id = f.account_id and ? = ? and f.ad_org_id in (...) and f.c_period_id = p.c_period_id and p.c_year_id = y.c_year_id and y.year in (...) and not exists ( select ? from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> ?) union all select m.c_elementvalue_id as id, ? as qty, ? as qtycredit, (coalesce(f.amtacctdr, ?) - coalesce(f.amtacctcr, ?)) as qty_ref, (coalesce(f.amtacctcr, ?) - coalesce(f.amtacctdr, ?)) as qtycredit_ref from c_elementvalue m, fact_acct f, c_period p, c_year y where m.ad_org_id in (...) and m.ad_client_id in (...) and (? = ? or to_char(?) = to_char(?)) and ? = ? and f.c_acctschema_id = ? and f.factaccttype <> ? and f.factaccttype <> ? and m.c_elementvalue_id = f.account_id and ? = ? and f.ad_org_id in (...) and f.c_period_id = p.c_period_id and p.c_year_id = y.c_year_id and y.year in (...) and not exists ( select ? from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> ?)) aa group by id;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 16 13 2 4s548ms 2s274ms [ User: tad - Total duration: 4s548ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s548ms - Times executed: 2 ]
-
SELECT ID, SUM(QTY) AS QTY, SUM(QTYCREDIT) AS QTYCREDIT, SUM(QTY_REF) AS QTY_REF, SUM(QTYCREDIT_REF) AS QTYCREDIT_REF FROM ( SELECT m.C_ElementValue_ID as id, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit, 0 as qty_ref, 0 as qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 0 = 0 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND Y.YEAR IN ('2025') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2024') UNION ALL SELECT m.C_ElementValue_ID as id, 0 AS QTY, 0 as qtyCredit, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty_ref, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND (1 = 2 OR to_char('Y') = to_char('Y')) AND 2 = 2 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 1 = 1 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND y.YEAR IN ('2024') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2023')) AA GROUP BY ID;
Date: 2026-07-16 13:13:53 Duration: 2s312ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT ID, SUM(QTY) AS QTY, SUM(QTYCREDIT) AS QTYCREDIT, SUM(QTY_REF) AS QTY_REF, SUM(QTYCREDIT_REF) AS QTYCREDIT_REF FROM ( SELECT m.C_ElementValue_ID as id, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit, 0 as qty_ref, 0 as qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 0 = 0 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND Y.YEAR IN ('2025') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2024') UNION ALL SELECT m.C_ElementValue_ID as id, 0 AS QTY, 0 as qtyCredit, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty_ref, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND (1 = 2 OR to_char('Y') = to_char('Y')) AND 2 = 2 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 1 = 1 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND y.YEAR IN ('2024') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2023')) AA GROUP BY ID;
Date: 2026-07-16 13:13:58 Duration: 2s235ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 2 4s248ms 2s124ms 2s124ms 2s124ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 16 10 2 4s248ms 2s124ms [ User: tad - Total duration: 4s248ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s248ms - Times executed: 2 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/358%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:55 Duration: 2s124ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3584%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:56 Duration: 2s124ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($15) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $16;
Date: 2026-07-16 10:49:54 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 3s63ms 47s978ms 38s718ms 10 6m27s select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id in (...);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 16 10 8 4m51s 36s452ms 13 2 1m35s 47s780ms [ User: tad - Total duration: 6m27s - Times executed: 10 ]
[ Application: openbravo - Total duration: 6m27s - Times executed: 10 ]
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('DA6D5109E0794236A336DF4E401DDF51', 'AF26C99F1F5B4BDA9ADE33281C824310', 'A74D5584155C4F2ABB29197BEEAB6AEF', 'A0EA6676758A431D97D0EF94B42A67DF', '999BC0DA6F604831BCE836ACC899B166', '8194420624964FAC9C7553A635DC07AC', '7030BD9DBC1F4E9DB35DA9639DAE294A', '6BFB63A78EB74D33BCF96CA70B345A32', '4DA771C0639B4722ABB73776386246C7', '44283D5184804405B5322523206369DF', '2B3669E169F94F159126C4FD0783410C', '0DECD474EEE04C9288CCC2EF80CB9067', 'D77F3EC2F2FB4F0E8167AE5A720DA84B', 'CF4FE921173D4296A13612C39A226ABB', '974C3A378CBC492C8AC100C35B262D28', '92FB4AA6CF8C4016ABCF18B511F990E4', '902BE349A14C46C484FDE3AA4CA87FD1', '70E06199D44142D2AC0425EA5A0E4E25', '6D1A505D0A874F5B8EFD2CADD6542C78', '57CDF98D9C954D519E6902F8AE16AB0E', '40A7E834ED004BC0BC56E8EBC39E3F96', '3EB2D430287B4C578B13E33CD71028B4', '253A1863F8894B348BBC8235B3B7B4FD', 'D1BBB239C3BA4FCE80C09CA8F3AC90DC', 'CBCA234DA9B74D84B2165C1AD8183CBD', 'B203A5E9D8784D56807F6C07C968B979', 'AF9059E7C4F14AB0877DF403E828905D', '9D60729BADAE4DFEBB393723AA46A9B8', '907395AA40CD4274AECE7E26691CF41E', '2F08189EB11D4B95B70C015C9DD6077C', 'ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '5ABD202EBA7A425AA48CE424BB714D79', 'FAE634ADA07B4BA0A943FCBC71269F1C');
Date: 2026-07-16 13:53:29 Duration: 47s978ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('BBC8993C9B36449E95538F8BC635937D', 'BB1C633AA69344E3B614CE64E6E5A73F', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53', 'B5776043334E4F0B95A45E7E9ADB6CB3', 'B4DEB76EB3DE440AA03884C3AD5BC3A7', 'A613569C616B4400A67CF0D2E98E25B8', '9DE3E845BFFC4A90A3DB21B8ECA3AF83', '9CBAA873B64242F48DEE11BD7BDAB6A1', '7B96CE62188341F8A9F65807E5BDE3CD', '7AC5E7AF6F744819B5866D21F11E5D98', '6E1A004618DF48A08C11E6AB69C776DB', '5DE33BA2BB0C408EB2225A522952B93A', '5706ECDDBB9B4D41BF734341204461B2', '3F8FA22AA507446D87BFA9606F8072EF', '3B63B0F2F82246B2B7DE41D8091EC984', '2CAB937F19A44748B75691078B8720B9', '1226078C4C694576804583ACE24E3CD1', '0F80F36AD02C4185BB146A2523B3A431', '046E97912FB44F5787E61044CA75E783', 'FE8EFFA3F1724CE5A78E4532E8195A2C', 'F48F564D3EE54934A2E6A5D3555590CA', 'DCC1A05E11734188AD665D1C7F6A8B2C', 'CFB49E3F6DFA43988C9820CFCDF4D722', 'C2830A625C984F3FB65E946DF2779D5F', 'AB80C22BCAC74F56A98588F72B0BD6FA', '9D2FC4CF3D2D4DDC8DF9765E7605691D', '885134123AB646009C9FC6B8D5880267', '70BB8001548149C69D5197506CF16EFD', '567187AA7CAB449A886A6680521D3C52', '519ACB7BDE114495B0F2D46047F2782E', '45512BEB1434414FB421BB54F92A104E', '405EBE347D3E4391BE791C5A74742437', '3844AFF038554BBC86F7FD6A1225D528', '0304315403A44A4188FDF14E43C6261B', 'E6A5BF9EE2B3463B9F2ED43DD53F5F72', 'E68E7F26E6824330AD82619695DC47C4');
Date: 2026-07-16 10:52:07 Duration: 47s687ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID in ('CEA9CD52250B4B29B846C042C96F2922', 'C73F04E916A542A6A7C6BC804ECAA073', 'A727D6966444476BA22F8B1311B551A3', '9E2ACDE62C4148E19F2FE87DCFAC03F8', '8D26BC165048413D88C1685253901CD6', '5E9BAB4472444E47A9E6EBA94854EFC3', '4D2AAFB1CFDE47549AC2FE79A4F9FB1A', 'D016BF162A0D44C89BB2E6990520C605', 'ACFDB325EB4F4DF8BF58378D22D9F44F', '937405A6B3724C9A83634E5506AD705A', '4491D6600BF14B59B3CD6CF7ABBD15DA', '2EDE7CF7A16A477E8410E2BAA1926C37', '22BC19172EF541DDA63167D80D768B04', 'EB82D8DBCF924F68A64FE58482C75215', '991C37144AC14AFCBF08A9EC3C82F3D3', '722FDF555D484CB5988814C95EB555B3', '62A7795968BB46E798B6E10EB46FAD1C', 'FDEFE41886A84F968C0EADEED98AD68A', 'DF3FAA6669134BE583F1B43CE2FCD4EE', 'DB96D645ED944C42922CACB8EA52035B', 'C3C80C6B41E44E57995481EE244760BE', 'BA08B5F7E11646858B2F33220E9B9185', 'AD0AA61E1DC245A599E0F4DF70DB8383', '932529E707E34CB4A3ACF355958E7D64', '9099F11C2EE14F519D6DCA39EE22C9C5', '8BAA962A033249688B9F67D4C6DE2576', '5608C842F1734D239A116534E2882093', '32105F26116F4B27AE11F14975663678', '2C5ACB9469B3491FB15AB1C8A35A3EE9', '1927365C95C7490DA32C4CDF2EB75C0C', 'FB82FC2562A940338FD986F8F0269025', '75D9B11D98FF4665BB603C010156228A', '3BC6405AA4E44A549C9ACE2FDDF91C63', 'D75BD6F5F66B44A5990103A873EAD7D8', 'B61FB40211F548B0AA9D0C4AAF09C554', 'A99C8AEEE2C943FBA55966D4C5E31CB8', '9366F4352F624DEB9C23C52FCB18D321', '83106130B1D3435387E43EF91FC7B5A2', '25AB778E4A0F443981A3F6F4546E75F4', '1406F359228A43E39D0A769EC593546F', 'FA61AF6FAAD44AB5A6D03C15D4E3FA9C', 'D674DE7912FB4C18B9E970DDF4247484', 'B633C5444578453888DE901687603DAB', '34163C4142ED4F2CBDF60FF1CDACE2D6', '1E461566C8C748719C8E4DC8592F7698', '1BDBD8AA6E5D40178C7DCF53AA759250', '194F1E050D33409D9EA355391AAD2E01', '9073B8C50C8042F59C68214375FF34F7', '7A6F82E9F9E1442A8C0B1F993EA3F25F', '5CA665CBF27249A7AC2BB3B134D5F308');
Date: 2026-07-16 10:36:29 Duration: 47s673ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 6s991ms 11s254ms 8s417ms 3 25s252ms select c_order_post1 (null, ?, ?) as result from dual;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 16 08 1 11s254ms 11s254ms 12 2 13s997ms 6s998ms [ User: tad - Total duration: 25s252ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 25s252ms - Times executed: 3 ]
-
SELECT c_order_post1 (NULL, '7F75B8BF2EA94E0C94F83178CE55102A', 'N') AS RESULT FROM DUAL;
Date: 2026-07-16 08:16:56 Duration: 11s254ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, 'CEEC7D5C133646B5846B35104A3AF91A', 'N') AS RESULT FROM DUAL;
Date: 2026-07-16 12:34:55 Duration: 7s6ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, '0805CCED0BCF45F6987F170594F0F8D7', 'N') AS RESULT FROM DUAL;
Date: 2026-07-16 12:35:46 Duration: 6s991ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 6s929ms 10s578ms 7s298ms 45 5m28s select * from c_order_post (?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 16 08 2 14s305ms 7s152ms 09 5 36s56ms 7s211ms 10 6 42s781ms 7s130ms 11 2 14s185ms 7s92ms 12 7 49s680ms 7s97ms 15 11 1m22s 7s538ms 16 8 59s836ms 7s479ms 17 4 28s665ms 7s166ms [ User: tad - Total duration: 5m28s - Times executed: 45 ]
[ Application: openbravo - Total duration: 5m28s - Times executed: 45 ]
-
SELECT * FROM C_ORDER_POST ('442A0684520141A3AA7A35EE385DA068');
Date: 2026-07-16 15:16:12 Duration: 10s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('C02B844084634A12A689B79627C69E2D');
Date: 2026-07-16 16:19:00 Duration: 9s165ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('80115F4A83664475BACBA04ECE41359A');
Date: 2026-07-16 15:56:49 Duration: 7s534ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 6s812ms 7s230ms 7s20ms 14 1m38s select * from m_inout_post0 (?);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 09 1 6s923ms 6s923ms 10 2 14s201ms 7s100ms 12 2 14s242ms 7s121ms 15 2 14s206ms 7s103ms 16 5 34s902ms 6s980ms 17 2 13s809ms 6s904ms [ User: tad - Total duration: 1m38s - Times executed: 14 ]
[ Application: openbravo - Total duration: 1m38s - Times executed: 14 ]
-
SELECT * FROM M_InOut_Post0 ('EFC0907C15CC42EC9CC31DF915FCB47A');
Date: 2026-07-16 10:53:57 Duration: 7s230ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('9325007680064BD48B8D81C2A641BB3F');
Date: 2026-07-16 12:47:23 Duration: 7s188ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('37FB150F17C44DD0942516764B596BBE');
Date: 2026-07-16 15:35:24 Duration: 7s177ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 2s167ms 4s884ms 3s86ms 4 12s347ms insert into fact_acct (fact_acct_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_acctschema_id, account_id, datetrx, dateacct, c_period_id, ad_table_id, record_id, postingtype, c_currency_id, amtsourcedr, amtsourcecr, amtacctdr, amtacctcr, fact_acct_group_id, seqno, factaccttype, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, description, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id) select get_uuid (), ?, ?, ?, now(), ?, now(), ?, c_acctschema_id, account_id, to_date(?), to_date(?), ?, ?, ?, ?, ?, ( case sign(sum(amtacctcr) - sum(amtacctdr)) when ? then ? else (sum(amtacctcr) - sum(amtacctdr)) end), ( case sign(sum(amtacctdr) - sum(amtacctcr)) when ? then ? else (sum(amtacctdr) - sum(amtacctcr)) end), ( case sign(sum(amtacctcr) - sum(amtacctdr)) when ? then ? else (sum(amtacctcr) - sum(amtacctdr)) end), ( case sign(sum(amtacctdr) - sum(amtacctcr)) when ? then ? else (sum(amtacctdr) - sum(amtacctcr)) end), ?, to_number(?), ?, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, ?, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id from fact_acct where exists ( select ? from c_period p where p.c_year_id = ? and p.c_period_id = fact_acct.c_period_id) and exists ( select ? from c_elementvalue where c_elementvalue.accounttype in (...) and account_id = c_elementvalue_id) and ad_org_id = ? and c_acctschema_id = ? and (factaccttype <> ? or fact_acct_group_id = ?) group by account_id, acctdescription, acctvalue, c_bpartner_id, m_product_id, a_asset_id, c_tax_id, c_project_id, c_activity_id, user1_id, user2_id, c_campaign_id, c_salesregion_id, c_acctschema_id having sum(amtacctdr) - sum(amtacctcr) <> ? order by acctvalue;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 16 13 4 12s347ms 3s86ms [ User: tad - Total duration: 12s347ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 12s347ms - Times executed: 4 ]
-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCEDR, AMTSOURCECR, AMTACCTDR, AMTACCTCR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), 'FF80818133B7413E0133B7164D6A0002', 'FF80818133B7413E0133B71974AD28C6', 'Y', now(), 'AB6C0034255E4370A86E2E985B7BD43D', now(), 'AB6C0034255E4370A86E2E985B7BD43D', C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date('31-12-2025'), to_date('31-12-2025'), 'FE11860E104540C885746AD9D3270D31', '145', 'FE11860E104540C885746AD9D3270D31', 'A', '102', ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), '690F1146CD504A708CB12DEB0BFF370C', to_number('20'), 'R', ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, 'Entrada de regularización', C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = '6E291C21988F4D90AC2C4FD9E7DDE383' AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('R') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = 'FF80818133B7413E0133B71974AD28C6' AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = NULL) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:30 Duration: 4s884ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCEDR, AMTSOURCECR, AMTACCTDR, AMTACCTCR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), 'FF80818133B7413E0133B7164D6A0002', 'FF80818133B7413E0133B71974AD28C6', 'Y', now(), 'AB6C0034255E4370A86E2E985B7BD43D', now(), 'AB6C0034255E4370A86E2E985B7BD43D', C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date('31-12-2025'), to_date('31-12-2025'), 'FE11860E104540C885746AD9D3270D31', '145', 'FE11860E104540C885746AD9D3270D31', 'A', '102', ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), '690F1146CD504A708CB12DEB0BFF370C', to_number('10'), 'R', ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, 'Entrada de regularización', C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = '6E291C21988F4D90AC2C4FD9E7DDE383' AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('E') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = 'FF80818133B7413E0133B71974AD28C6' AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = NULL) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:25 Duration: 2s747ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
INSERT INTO FACT_ACCT (FACT_ACCT_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, UPDATED, UPDATEDBY, C_ACCTSCHEMA_ID, ACCOUNT_ID, DATETRX, DATEACCT, C_PERIOD_ID, AD_TABLE_ID, RECORD_ID, POSTINGTYPE, C_CURRENCY_ID, AMTSOURCEDR, AMTSOURCECR, AMTACCTDR, AMTACCTCR, FACT_ACCT_GROUP_ID, SEQNO, FACTACCTTYPE, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, DESCRIPTION, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID) SELECT get_UUID (), 'FF80818133B7413E0133B7164D6A0002', 'FF80818133B7413E0133B71974AD28C6', 'Y', now(), 'AB6C0034255E4370A86E2E985B7BD43D', now(), 'AB6C0034255E4370A86E2E985B7BD43D', C_ACCTSCHEMA_ID, ACCOUNT_ID, to_date('31-12-2025'), to_date('31-12-2025'), 'FE11860E104540C885746AD9D3270D31', '145', 'FE11860E104540C885746AD9D3270D31', 'A', '102', ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), ( CASE SIGN(SUM(AMTACCTCR) - SUM(AMTACCTDR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTCR) - SUM(AMTACCTDR)) END), ( CASE SIGN(SUM(AMTACCTDR) - SUM(AMTACCTCR)) WHEN -1 THEN 0 ELSE (SUM(AMTACCTDR) - SUM(AMTACCTCR)) END), '1FD4747E10A74BF798CF3D8517ABAB0C', to_number('20'), 'C', ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, 'Cerrando entrada', C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID FROM FACT_ACCT WHERE EXISTS ( SELECT 1 FROM C_PERIOD P WHERE P.C_YEAR_ID = '6E291C21988F4D90AC2C4FD9E7DDE383' AND P.C_PERIOD_ID = FACT_ACCT.C_PERIOD_ID) AND EXISTS ( SELECT 1 FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE.ACCOUNTTYPE IN ('A') AND ACCOUNT_ID = C_ELEMENTVALUE_ID) AND AD_ORG_ID = 'FF80818133B7413E0133B71974AD28C6' AND C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND (FACTACCTTYPE <> 'C' or FACT_ACCT_GROUP_ID = NULL) GROUP BY ACCOUNT_ID, ACCTDESCRIPTION, ACCTVALUE, C_BPARTNER_ID, M_PRODUCT_ID, A_ASSET_ID, C_TAX_ID, C_PROJECT_ID, C_ACTIVITY_ID, USER1_ID, USER2_ID, C_CAMPAIGN_ID, C_SALESREGION_ID, C_ACCTSCHEMA_ID HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 order by ACCTVALUE;
Date: 2026-07-16 13:17:32 Duration: 2s549ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 2s3ms 3s221ms 2s333ms 4 9s334ms select a.id, ev.value as account_id, coalesce(ev_trl.name, ev.name) as name, a.initialamt as saldo_inicial, a.amtacctcr, a.amtacctdr, a.initialamt + a.amtacctdr - a.amtacctcr as saldo_final, a.groupbyid, case ad_column_identifier (?, groupbyid, to_char(?)) when ? then ? else ad_column_identifier (?, groupbyid, to_char(?)) end as groupbyname from ( select sum( case when (dateacct < to_date(?) or (dateacct = to_date(?) and f.factaccttype = ?)) then f.amtacctdr - f.amtacctcr else ? end) as initialamt, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctdr else ? end) as amtacctdr, sum( case when (dateacct >= to_date(?) and f.factaccttype not in (...)) or (dateacct = to_date(?) and f.factaccttype = ?) then f.amtacctcr else ? end) as amtacctcr, f.account_id as id, to_char(?) as groupbyid from fact_acct f where f.ad_org_id in (...) and f.ad_client_id in (...) and f.ad_org_id in (...) and dateacct < to_date(?) and ? = ? and f.c_acctschema_id = ? and f.isactive = ? group by f.account_id) a left join c_elementvalue ev on a.id = ev.c_elementvalue_id left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? where ev.elementlevel = ? and ? = ? and (a.initialamt <> ? or a.amtacctcr <> ? or a.amtacctdr <> ?) order by ev.value, ev.name, id, groupbyname;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 16 13 4 9s334ms 2s333ms [ User: tad - Total duration: 9s334ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 9s334ms - Times executed: 4 ]
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2025') or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND DATEACCT < TO_DATE('01-04-2025') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-16 13:09:19 Duration: 3s221ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2025') or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND DATEACCT < TO_DATE('01-01-2026') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-16 13:11:25 Duration: 2s87ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select a.id, ev.value as account_id, COALESCE(ev_trl.name, ev.name) as name, a.initialamt as SALDO_INICIAL, a.amtacctcr, a.amtacctdr, A.INITIALAMT + A.AMTACCTDR - A.AMTACCTCR AS SALDO_FINAL, a.groupbyid, CASE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) WHEN '**' THEN '' ELSE ad_column_identifier ('',groupbyid,TO_CHAR('es_ES')) END AS groupbyname from( SELECT sum(case when (DATEACCT < TO_DATE('01-01-2025') or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = 'O')) then F.AMTACCTDR - F.AMTACCTCR else 0 end) as initialamt, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTDR else 0 end) as AMTACCTDR, sum(case when (DATEACCT >= TO_DATE('01-01-2025') AND F.FACTACCTTYPE not in('O', 'R', 'C')) or (DATEACCT = TO_DATE('01-01-2025') and F.FACTACCTTYPE = NULL) then F.AMTACCTCR else 0 end) as AMTACCTCR, F.ACCOUNT_ID AS ID, to_char('') AS groupbyid FROM FACT_ACCT F WHERE F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND F.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND F.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND DATEACCT < TO_DATE('01-07-2025') AND 1 = 1 AND F.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND F.ISACTIVE = 'Y' group by F.ACCOUNT_ID) a LEFT JOIN c_elementvalue ev ON a.id = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' WHERE ev.elementlevel = 'S' AND 2 = 2 and (a.initialamt <> 0 or a.amtacctcr <> 0 or a.amtacctdr <> 0) order by ev.value, ev.name, id, groupbyname;
Date: 2026-07-16 13:10:21 Duration: 2s21ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 2s235ms 2s312ms 2s274ms 2 4s548ms select id, sum(qty) as qty, sum(qtycredit) as qtycredit, sum(qty_ref) as qty_ref, sum(qtycredit_ref) as qtycredit_ref from ( select m.c_elementvalue_id as id, (coalesce(f.amtacctdr, ?) - coalesce(f.amtacctcr, ?)) as qty, (coalesce(f.amtacctcr, ?) - coalesce(f.amtacctdr, ?)) as qtycredit, ? as qty_ref, ? as qtycredit_ref from c_elementvalue m, fact_acct f, c_period p, c_year y where m.ad_org_id in (...) and m.ad_client_id in (...) and ? = ? and f.c_acctschema_id = ? and f.factaccttype <> ? and f.factaccttype <> ? and m.c_elementvalue_id = f.account_id and ? = ? and f.ad_org_id in (...) and f.c_period_id = p.c_period_id and p.c_year_id = y.c_year_id and y.year in (...) and not exists ( select ? from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> ?) union all select m.c_elementvalue_id as id, ? as qty, ? as qtycredit, (coalesce(f.amtacctdr, ?) - coalesce(f.amtacctcr, ?)) as qty_ref, (coalesce(f.amtacctcr, ?) - coalesce(f.amtacctdr, ?)) as qtycredit_ref from c_elementvalue m, fact_acct f, c_period p, c_year y where m.ad_org_id in (...) and m.ad_client_id in (...) and (? = ? or to_char(?) = to_char(?)) and ? = ? and f.c_acctschema_id = ? and f.factaccttype <> ? and f.factaccttype <> ? and m.c_elementvalue_id = f.account_id and ? = ? and f.ad_org_id in (...) and f.c_period_id = p.c_period_id and p.c_year_id = y.c_year_id and y.year in (...) and not exists ( select ? from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> ?)) aa group by id;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 16 13 2 4s548ms 2s274ms [ User: tad - Total duration: 4s548ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s548ms - Times executed: 2 ]
-
SELECT ID, SUM(QTY) AS QTY, SUM(QTYCREDIT) AS QTYCREDIT, SUM(QTY_REF) AS QTY_REF, SUM(QTYCREDIT_REF) AS QTYCREDIT_REF FROM ( SELECT m.C_ElementValue_ID as id, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit, 0 as qty_ref, 0 as qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 0 = 0 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND Y.YEAR IN ('2025') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2024') UNION ALL SELECT m.C_ElementValue_ID as id, 0 AS QTY, 0 as qtyCredit, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty_ref, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND (1 = 2 OR to_char('Y') = to_char('Y')) AND 2 = 2 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 1 = 1 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND y.YEAR IN ('2024') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2023')) AA GROUP BY ID;
Date: 2026-07-16 13:13:53 Duration: 2s312ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT ID, SUM(QTY) AS QTY, SUM(QTYCREDIT) AS QTYCREDIT, SUM(QTY_REF) AS QTY_REF, SUM(QTYCREDIT_REF) AS QTYCREDIT_REF FROM ( SELECT m.C_ElementValue_ID as id, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit, 0 as qty_ref, 0 as qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 0 = 0 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND Y.YEAR IN ('2025') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2024') UNION ALL SELECT m.C_ElementValue_ID as id, 0 AS QTY, 0 as qtyCredit, (COALESCE(f.AMTACCTDR, 0) - COALESCE(f.AMTACCTCR, 0)) AS qty_ref, (COALESCE(f.AMTACCTCR, 0) - COALESCE(f.AMTACCTDR, 0)) AS qtyCredit_ref FROM C_ElementValue m, Fact_Acct f, C_Period p, C_Year y WHERE m.AD_Org_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND m.AD_Client_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND (1 = 2 OR to_char('Y') = to_char('Y')) AND 2 = 2 AND f.C_ACCTSCHEMA_ID = 'FF80818133B7413E0133B719A08E2FEF' AND f.FACTACCTTYPE <> 'R' AND f.FACTACCTTYPE <> 'C' AND m.C_ElementValue_ID = f.Account_ID AND 1 = 1 AND f.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND f.C_PERIOD_ID = p.C_PERIOD_ID AND p.C_YEAR_ID = y.C_YEAR_ID AND y.YEAR IN ('2024') and not exists ( select 1 from ad_org_closing, c_year year where open_fact_acct_group_id = f.fact_acct_group_id and ad_org_closing.c_year_id = year.c_year_id and year.year <> '2023')) AA GROUP BY ID;
Date: 2026-07-16 13:13:58 Duration: 2s235ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 2s124ms 2s124ms 2s124ms 2 4s248ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 16 10 2 4s248ms 2s124ms [ User: tad - Total duration: 4s248ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s248ms - Times executed: 2 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/358%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:55 Duration: 2s124ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3584%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:49:56 Duration: 2s124ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($15) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $16;
Date: 2026-07-16 10:49:54 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
9 2s35ms 2s156ms 2s106ms 7 14s743ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 10 7 14s743ms 2s106ms [ User: tad - Total duration: 14s743ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 14s743ms - Times executed: 7 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/379%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:54 Duration: 2s156ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', '46B3AAC3A06B4ED793016C4E5C54E704', '7037B0EC9AA9481E92BB79013794D122', '9548EA89B074486593E4DB6ACF8C1F7C', 'D154E2095B75489AA5779DB1C1B1EA53', 'E425E7CD846B4FDF9E6488B94D9EF109', 'F3CF3A9446AF497EBF31A19599BA946F') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%C3580%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%46B3AAC3A06B4ED793016C4E5C54E704%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%7037B0EC9AA9481E92BB79013794D122%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%9548EA89B074486593E4DB6ACF8C1F7C%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D154E2095B75489AA5779DB1C1B1EA53%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E425E7CD846B4FDF9E6488B94D9EF109%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F3CF3A9446AF497EBF31A19599BA946F%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:57 Duration: 2s128ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', '46B3AAC3A06B4ED793016C4E5C54E704', '7037B0EC9AA9481E92BB79013794D122', '9548EA89B074486593E4DB6ACF8C1F7C', 'D154E2095B75489AA5779DB1C1B1EA53', 'E425E7CD846B4FDF9E6488B94D9EF109', 'F3CF3A9446AF497EBF31A19599BA946F') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F3CF3A9446AF497EBF31A19599BA946F%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%C26/3580%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%46B3AAC3A06B4ED793016C4E5C54E704%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%7037B0EC9AA9481E92BB79013794D122%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%9548EA89B074486593E4DB6ACF8C1F7C%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D154E2095B75489AA5779DB1C1B1EA53%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E425E7CD846B4FDF9E6488B94D9EF109%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F3CF3A9446AF497EBF31A19599BA946F%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:48:59 Duration: 2s123ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 2s80ms 2s114ms 2s101ms 3 6s305ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 16 10 3 6s305ms 2s101ms [ User: tad - Total duration: 6s305ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s305ms - Times executed: 3 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3586%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:29 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/35%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:28 Duration: 2s110ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650', 'E4BE732D587D40B4A952BA7A553C93AB', '0C79AD14E8974C71A9C49B99EDFBC278', 'B5C67D514702465B902DC190B0C267D2') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4BE732D587D40B4A952BA7A553C93AB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0C79AD14E8974C71A9C49B99EDFBC278%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B5C67D514702465B902DC190B0C267D2%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/358%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4BE732D587D40B4A952BA7A553C93AB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0C79AD14E8974C71A9C49B99EDFBC278%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B5C67D514702465B902DC190B0C267D2%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:51:29 Duration: 2s80ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 2s75ms 2s118ms 2s97ms 2 4s194ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 10 2 4s194ms 2s97ms [ User: tad - Total duration: 4s194ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s194ms - Times executed: 2 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/359%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:36 Duration: 2s118ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650') or invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%371C217A299F49F38CD125AAF533554B%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CC3BE66466C94DD5B1855A24ECFB8BF4%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%F447124FDA8747EF995CB7FA91FB9435%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%036846AE393F4045BDE3A0BF7B0404A5%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5E059F3EDBC74A22A99CCB939F8A0F74%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B260BF3761554D6DBAEEFBA5002FB650%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/3592%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-16 10:50:38 Duration: 2s75ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('371C217A299F49F38CD125AAF533554B', 'CC3BE66466C94DD5B1855A24ECFB8BF4', 'F447124FDA8747EF995CB7FA91FB9435', '036846AE393F4045BDE3A0BF7B0404A5', '5E059F3EDBC74A22A99CCB939F8A0F74', 'B260BF3761554D6DBAEEFBA5002FB650') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($17) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($18) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%371C217A299F49F38CD125AAF533554B%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CC3BE66466C94DD5B1855A24ECFB8BF4%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%F447124FDA8747EF995CB7FA91FB9435%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%036846AE393F4045BDE3A0BF7B0404A5%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5E059F3EDBC74A22A99CCB939F8A0F74%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B260BF3761554D6DBAEEFBA5002FB650%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $19;
Date: 2026-07-16 10:50:35 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
12 2s29ms 2s136ms 2s89ms 3 6s267ms select invoicecan0_.c_order_id as col_0_0_, organizati2_.name as col_1_0_, invoicecan0_.c_doctype_id as col_2_0_, invoicecan0_.documentno as col_3_0_, businesspa3_.name as col_4_0_, invoicecan0_.dateordered as col_5_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end as col_6_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end as col_7_0_, invoicecan0_.term as col_8_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? then case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then ?.? else invoicecan0_.pendinglines end as col_9_0_, invoicecan0_.qtyordered as col_10_0_, invoicecan0_.qtydelivered as col_11_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end - ( case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end) as col_12_0_, invoicecan0_.amountlinesgross as col_13_0_, invoicecan0_.created as col_14_0_, invoicecan0_.createdby as col_15_0_, invoicecan0_.updated as col_16_0_, invoicecan0_.updatedby as col_17_0_, documentty4_.c_doctype_id as c_doctyp1_224_0_, aduser5_.ad_user_id as ad_user_1_129_1_, aduser6_.ad_user_id as ad_user_1_129_2_, documentty4_.ad_client_id as ad_clien2_224_0_, documentty4_.ad_org_id as ad_org_i3_224_0_, documentty4_.isactive as isactive4_224_0_, documentty4_.created as created5_224_0_, documentty4_.createdby as createdb6_224_0_, documentty4_.updated as updated7_224_0_, documentty4_.updatedby as updatedb8_224_0_, documentty4_.name as name9_224_0_, documentty4_.printname as printna10_224_0_, documentty4_.description as descrip11_224_0_, documentty4_.docbasetype as docbase12_224_0_, documentty4_.issotrx as issotrx13_224_0_, documentty4_.docsubtypeso as docsubt14_224_0_, documentty4_.c_doctypeshipment_id as c_docty15_224_0_, documentty4_.c_doctypeinvoice_id as c_docty16_224_0_, documentty4_.isdocnocontrolled as isdocno17_224_0_, documentty4_.docnosequence_id as docnose18_224_0_, documentty4_.gl_category_id as gl_cate19_224_0_, documentty4_.documentnote as documen20_224_0_, documentty4_.isdefault as isdefau21_224_0_, documentty4_.documentcopies as documen22_224_0_, documentty4_.ad_table_id as ad_tabl23_224_0_, documentty4_.orgfiltered as orgfilt24_224_0_, documentty4_.c_doctype_reversed_id as c_docty25_224_0_, documentty4_.em_intr_transaction_type as em_intr26_224_0_, documentty4_.isexpense as isexpen27_224_0_, documentty4_.em_intr_statistical_regime as em_intr28_224_0_, documentty4_.isreversal as isrever29_224_0_, documentty4_.isreturn as isretur30_224_0_, documentty4_.c_doctypeorder_id as c_docty31_224_0_, documentty4_.c_doctypesimpinvoice_id as c_docty32_224_0_, documentty4_.em_obwpl_useoutbound as em_obwp33_224_0_, documentty4_.em_prouti_c_doctypeorder_id as em_prou34_224_0_, documentty4_.c_doctypeaggrinvoice_id as c_docty35_224_0_, documentty4_.em_obwpl_isgroup as em_obwp36_224_0_, documentty4_.em_obwpl_generateshipment as em_obwp37_224_0_, documentty4_.em_tbai_ad_sequence_id as em_tbai38_224_0_, documentty4_.em_etvfac_inv_type as em_etvf39_224_0_, documentty4_.em_obwpl_shipmentdoctype_id as em_obwp40_224_0_, documentty4_.em_etvfac_verifac_desc as em_etvf41_224_0_, documentty4_.em_etvfac_external_ref as em_etvf42_224_0_, documentty4_.em_etvfac_simpinvart7273 as em_etvf43_224_0_, documentty4_.em_etvfac_invnoidart61d as em_etvf44_224_0_, documentty4_.em_prwss_is_ws_type as em_prws45_224_0_, documentty4_.em_etvfac_reverseinvtype as em_etvf46_224_0_, documentty4_.em_etsg_isrectificative as em_etsg47_224_0_, documentty4_.em_pruti_inforeport2 as em_prut48_224_0_, documentty4_.em_pruti_inforeport as em_prut49_224_0_, documentty4_.em_pruti_inforeport3 as em_prut50_224_0_, documentty4_.em_pruti_image_id as em_prut51_224_0_, documentty4_.em_pruti_image2_id as em_prut52_224_0_, documentty4_.em_pruti_email as em_prut53_224_0_, documentty4_.em_pruti_url as em_prut54_224_0_, documentty4_.em_pruti_phone as em_prut55_224_0_, documentty4_.em_pruti_phone2 as em_prut56_224_0_, documentty4_.em_pruti_fax as em_prut57_224_0_, aduser5_.ad_client_id as ad_clien2_129_1_, aduser5_.ad_org_id as ad_org_i3_129_1_, aduser5_.isactive as isactive4_129_1_, aduser5_.created as created5_129_1_, aduser5_.createdby as createdb6_129_1_, aduser5_.updated as updated7_129_1_, aduser5_.updatedby as updatedb8_129_1_, aduser5_.name as name9_129_1_, aduser5_.description as descrip10_129_1_, aduser5_.password as passwor11_129_1_, aduser5_.email as email12_129_1_, aduser5_.supervisor_id as supervi13_129_1_, aduser5_.c_bpartner_id as c_bpart14_129_1_, aduser5_.processing as process15_129_1_, aduser5_.emailuser as emailus16_129_1_, aduser5_.emailuserpw as emailus17_129_1_, aduser5_.c_bpartner_location_id as c_bpart18_129_1_, aduser5_.c_greeting_id as c_greet19_129_1_, aduser5_.title as title20_129_1_, aduser5_.comments as comment21_129_1_, aduser5_.phone as phone22_129_1_, aduser5_.phone2 as phone23_129_1_, aduser5_.fax as fax24_129_1_, aduser5_.lastcontact as lastcon25_129_1_, aduser5_.lastresult as lastres26_129_1_, aduser5_.birthday as birthda27_129_1_, aduser5_.ad_orgtrx_id as ad_orgt28_129_1_, aduser5_.firstname as firstna29_129_1_, aduser5_.lastname as lastnam30_129_1_, aduser5_.username as usernam31_129_1_, aduser5_.default_ad_client_id as default32_129_1_, aduser5_.default_ad_language as default33_129_1_, aduser5_.default_ad_org_id as default34_129_1_, aduser5_.default_ad_role_id as default35_129_1_, aduser5_.default_m_warehouse_id as default36_129_1_, aduser5_.islocked as islocke37_129_1_, aduser5_.ad_image_id as ad_imag38_129_1_, aduser5_.grant_portal_access as grant_p39_129_1_, aduser5_.lastpasswordupdate as lastpas40_129_1_, aduser5_.isexpiredpassword as isexpir41_129_1_, aduser5_.em_obpos_default_pos_role as em_obpo42_129_1_, aduser5_.commercialauth as commerc43_129_1_, aduser5_.viasms as viasms44_129_1_, aduser5_.viaemail as viaemai45_129_1_, aduser5_.em_pruti_isbillingcontact as em_prut46_129_1_, aduser5_.em_pruti_isordercontact as em_prut47_129_1_, aduser5_.em_smfsws_default_ws_role_id as em_smfs48_129_1_, aduser5_.em_pruti_ispurchaseordcontact as em_prut49_129_1_, aduser5_.em_pruti_isshipmentcontact as em_prut50_129_1_, aduser5_.em_primpa_iscontact as em_prim51_129_1_, aduser5_.em_obretco_default_pos_contact as em_obre52_129_1_, aduser6_.ad_client_id as ad_clien2_129_2_, aduser6_.ad_org_id as ad_org_i3_129_2_, aduser6_.isactive as isactive4_129_2_, aduser6_.created as created5_129_2_, aduser6_.createdby as createdb6_129_2_, aduser6_.updated as updated7_129_2_, aduser6_.updatedby as updatedb8_129_2_, aduser6_.name as name9_129_2_, aduser6_.description as descrip10_129_2_, aduser6_.password as passwor11_129_2_, aduser6_.email as email12_129_2_, aduser6_.supervisor_id as supervi13_129_2_, aduser6_.c_bpartner_id as c_bpart14_129_2_, aduser6_.processing as process15_129_2_, aduser6_.emailuser as emailus16_129_2_, aduser6_.emailuserpw as emailus17_129_2_, aduser6_.c_bpartner_location_id as c_bpart18_129_2_, aduser6_.c_greeting_id as c_greet19_129_2_, aduser6_.title as title20_129_2_, aduser6_.comments as comment21_129_2_, aduser6_.phone as phone22_129_2_, aduser6_.phone2 as phone23_129_2_, aduser6_.fax as fax24_129_2_, aduser6_.lastcontact as lastcon25_129_2_, aduser6_.lastresult as lastres26_129_2_, aduser6_.birthday as birthda27_129_2_, aduser6_.ad_orgtrx_id as ad_orgt28_129_2_, aduser6_.firstname as firstna29_129_2_, aduser6_.lastname as lastnam30_129_2_, aduser6_.username as usernam31_129_2_, aduser6_.default_ad_client_id as default32_129_2_, aduser6_.default_ad_language as default33_129_2_, aduser6_.default_ad_org_id as default34_129_2_, aduser6_.default_ad_role_id as default35_129_2_, aduser6_.default_m_warehouse_id as default36_129_2_, aduser6_.islocked as islocke37_129_2_, aduser6_.ad_image_id as ad_imag38_129_2_, aduser6_.grant_portal_access as grant_p39_129_2_, aduser6_.lastpasswordupdate as lastpas40_129_2_, aduser6_.isexpiredpassword as isexpir41_129_2_, aduser6_.em_obpos_default_pos_role as em_obpo42_129_2_, aduser6_.commercialauth as commerc43_129_2_, aduser6_.viasms as viasms44_129_2_, aduser6_.viaemail as viaemai45_129_2_, aduser6_.em_pruti_isbillingcontact as em_prut46_129_2_, aduser6_.em_pruti_isordercontact as em_prut47_129_2_, aduser6_.em_smfsws_default_ws_role_id as em_smfs48_129_2_, aduser6_.em_pruti_ispurchaseordcontact as em_prut49_129_2_, aduser6_.em_pruti_isshipmentcontact as em_prut50_129_2_, aduser6_.em_primpa_iscontact as em_prim51_129_2_, aduser6_.em_obretco_default_pos_contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join c_order order1_ on invoicecan0_.c_order_id = order1_.c_order_id inner join ad_org organizati2_ on invoicecan0_.ad_org_id = organizati2_.ad_org_id inner join c_bpartner businesspa3_ on invoicecan0_.c_bpartner_id = businesspa3_.c_bpartner_id inner join c_doctype documentty4_ on invoicecan0_.c_doctype_id = documentty4_.c_doctype_id inner join ad_user aduser5_ on invoicecan0_.createdby = aduser5_.ad_user_id inner join ad_user aduser6_ on invoicecan0_.updatedby = aduser6_.ad_user_id where (invoicecan0_.term = ? and invoicecan0_.qtydelivered <> ? and (? = ? and (exists ( select ? from c_orderline orderline7_ where orderline7_.c_order_id = order1_.c_order_id and orderline7_.qtydelivered - orderline7_.qtyinvoiced <> ?)) or ? = ?) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline8_ where orderline8_.c_order_id = order1_.c_order_id and orderline8_.qtyordered - orderline8_.qtyinvoiced <> ?)) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline9_ where orderline9_.c_order_id = order1_.c_order_id and orderline9_.qtydelivered <> ? and orderline9_.qtydelivered <> orderline9_.qtyinvoiced)) or invoicecan0_.term = ? and invoicecan0_.qtyordered = invoicecan0_.qtydelivered) and (invoicecan0_.ad_client_id in (...)) and (invoicecan0_.ad_org_id in (...)) order by organizati2_.name, businesspa3_.name, invoicecan0_.dateordered limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 16 12 1 2s29ms 2s29ms 17 2 4s238ms 2s119ms [ User: tad - Total duration: 6s267ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s267ms - Times executed: 3 ]
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:06:50 Duration: 2s136ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:32:10 Duration: 2s101ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 12:45:26 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 1s979ms 2s198ms 2s69ms 9 18s626ms select invoicecan0_.c_order_id as col_0_0_, organizati2_.name as col_1_0_, invoicecan0_.c_doctype_id as col_2_0_, invoicecan0_.documentno as col_3_0_, businesspa3_.name as col_4_0_, invoicecan0_.dateordered as col_5_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end as col_6_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end as col_7_0_, invoicecan0_.term as col_8_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? then case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then ?.? else invoicecan0_.pendinglines end as col_9_0_, invoicecan0_.qtyordered as col_10_0_, invoicecan0_.qtydelivered as col_11_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end - ( case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end) as col_12_0_, invoicecan0_.amountlinesgross as col_13_0_, invoicecan0_.created as col_14_0_, invoicecan0_.createdby as col_15_0_, invoicecan0_.updated as col_16_0_, invoicecan0_.updatedby as col_17_0_, documentty4_.c_doctype_id as c_doctyp1_224_0_, aduser5_.ad_user_id as ad_user_1_129_1_, aduser6_.ad_user_id as ad_user_1_129_2_, documentty4_.ad_client_id as ad_clien2_224_0_, documentty4_.ad_org_id as ad_org_i3_224_0_, documentty4_.isactive as isactive4_224_0_, documentty4_.created as created5_224_0_, documentty4_.createdby as createdb6_224_0_, documentty4_.updated as updated7_224_0_, documentty4_.updatedby as updatedb8_224_0_, documentty4_.name as name9_224_0_, documentty4_.printname as printna10_224_0_, documentty4_.description as descrip11_224_0_, documentty4_.docbasetype as docbase12_224_0_, documentty4_.issotrx as issotrx13_224_0_, documentty4_.docsubtypeso as docsubt14_224_0_, documentty4_.c_doctypeshipment_id as c_docty15_224_0_, documentty4_.c_doctypeinvoice_id as c_docty16_224_0_, documentty4_.isdocnocontrolled as isdocno17_224_0_, documentty4_.docnosequence_id as docnose18_224_0_, documentty4_.gl_category_id as gl_cate19_224_0_, documentty4_.documentnote as documen20_224_0_, documentty4_.isdefault as isdefau21_224_0_, documentty4_.documentcopies as documen22_224_0_, documentty4_.ad_table_id as ad_tabl23_224_0_, documentty4_.orgfiltered as orgfilt24_224_0_, documentty4_.c_doctype_reversed_id as c_docty25_224_0_, documentty4_.em_intr_transaction_type as em_intr26_224_0_, documentty4_.isexpense as isexpen27_224_0_, documentty4_.em_intr_statistical_regime as em_intr28_224_0_, documentty4_.isreversal as isrever29_224_0_, documentty4_.isreturn as isretur30_224_0_, documentty4_.c_doctypeorder_id as c_docty31_224_0_, documentty4_.c_doctypesimpinvoice_id as c_docty32_224_0_, documentty4_.em_obwpl_useoutbound as em_obwp33_224_0_, documentty4_.em_prouti_c_doctypeorder_id as em_prou34_224_0_, documentty4_.c_doctypeaggrinvoice_id as c_docty35_224_0_, documentty4_.em_obwpl_isgroup as em_obwp36_224_0_, documentty4_.em_obwpl_generateshipment as em_obwp37_224_0_, documentty4_.em_tbai_ad_sequence_id as em_tbai38_224_0_, documentty4_.em_etvfac_inv_type as em_etvf39_224_0_, documentty4_.em_obwpl_shipmentdoctype_id as em_obwp40_224_0_, documentty4_.em_etvfac_verifac_desc as em_etvf41_224_0_, documentty4_.em_etvfac_external_ref as em_etvf42_224_0_, documentty4_.em_etvfac_simpinvart7273 as em_etvf43_224_0_, documentty4_.em_etvfac_invnoidart61d as em_etvf44_224_0_, documentty4_.em_prwss_is_ws_type as em_prws45_224_0_, documentty4_.em_etvfac_reverseinvtype as em_etvf46_224_0_, documentty4_.em_etsg_isrectificative as em_etsg47_224_0_, documentty4_.em_pruti_inforeport2 as em_prut48_224_0_, documentty4_.em_pruti_inforeport as em_prut49_224_0_, documentty4_.em_pruti_inforeport3 as em_prut50_224_0_, documentty4_.em_pruti_image_id as em_prut51_224_0_, documentty4_.em_pruti_image2_id as em_prut52_224_0_, documentty4_.em_pruti_email as em_prut53_224_0_, documentty4_.em_pruti_url as em_prut54_224_0_, documentty4_.em_pruti_phone as em_prut55_224_0_, documentty4_.em_pruti_phone2 as em_prut56_224_0_, documentty4_.em_pruti_fax as em_prut57_224_0_, aduser5_.ad_client_id as ad_clien2_129_1_, aduser5_.ad_org_id as ad_org_i3_129_1_, aduser5_.isactive as isactive4_129_1_, aduser5_.created as created5_129_1_, aduser5_.createdby as createdb6_129_1_, aduser5_.updated as updated7_129_1_, aduser5_.updatedby as updatedb8_129_1_, aduser5_.name as name9_129_1_, aduser5_.description as descrip10_129_1_, aduser5_.password as passwor11_129_1_, aduser5_.email as email12_129_1_, aduser5_.supervisor_id as supervi13_129_1_, aduser5_.c_bpartner_id as c_bpart14_129_1_, aduser5_.processing as process15_129_1_, aduser5_.emailuser as emailus16_129_1_, aduser5_.emailuserpw as emailus17_129_1_, aduser5_.c_bpartner_location_id as c_bpart18_129_1_, aduser5_.c_greeting_id as c_greet19_129_1_, aduser5_.title as title20_129_1_, aduser5_.comments as comment21_129_1_, aduser5_.phone as phone22_129_1_, aduser5_.phone2 as phone23_129_1_, aduser5_.fax as fax24_129_1_, aduser5_.lastcontact as lastcon25_129_1_, aduser5_.lastresult as lastres26_129_1_, aduser5_.birthday as birthda27_129_1_, aduser5_.ad_orgtrx_id as ad_orgt28_129_1_, aduser5_.firstname as firstna29_129_1_, aduser5_.lastname as lastnam30_129_1_, aduser5_.username as usernam31_129_1_, aduser5_.default_ad_client_id as default32_129_1_, aduser5_.default_ad_language as default33_129_1_, aduser5_.default_ad_org_id as default34_129_1_, aduser5_.default_ad_role_id as default35_129_1_, aduser5_.default_m_warehouse_id as default36_129_1_, aduser5_.islocked as islocke37_129_1_, aduser5_.ad_image_id as ad_imag38_129_1_, aduser5_.grant_portal_access as grant_p39_129_1_, aduser5_.lastpasswordupdate as lastpas40_129_1_, aduser5_.isexpiredpassword as isexpir41_129_1_, aduser5_.em_obpos_default_pos_role as em_obpo42_129_1_, aduser5_.commercialauth as commerc43_129_1_, aduser5_.viasms as viasms44_129_1_, aduser5_.viaemail as viaemai45_129_1_, aduser5_.em_pruti_isbillingcontact as em_prut46_129_1_, aduser5_.em_pruti_isordercontact as em_prut47_129_1_, aduser5_.em_smfsws_default_ws_role_id as em_smfs48_129_1_, aduser5_.em_pruti_ispurchaseordcontact as em_prut49_129_1_, aduser5_.em_pruti_isshipmentcontact as em_prut50_129_1_, aduser5_.em_primpa_iscontact as em_prim51_129_1_, aduser5_.em_obretco_default_pos_contact as em_obre52_129_1_, aduser6_.ad_client_id as ad_clien2_129_2_, aduser6_.ad_org_id as ad_org_i3_129_2_, aduser6_.isactive as isactive4_129_2_, aduser6_.created as created5_129_2_, aduser6_.createdby as createdb6_129_2_, aduser6_.updated as updated7_129_2_, aduser6_.updatedby as updatedb8_129_2_, aduser6_.name as name9_129_2_, aduser6_.description as descrip10_129_2_, aduser6_.password as passwor11_129_2_, aduser6_.email as email12_129_2_, aduser6_.supervisor_id as supervi13_129_2_, aduser6_.c_bpartner_id as c_bpart14_129_2_, aduser6_.processing as process15_129_2_, aduser6_.emailuser as emailus16_129_2_, aduser6_.emailuserpw as emailus17_129_2_, aduser6_.c_bpartner_location_id as c_bpart18_129_2_, aduser6_.c_greeting_id as c_greet19_129_2_, aduser6_.title as title20_129_2_, aduser6_.comments as comment21_129_2_, aduser6_.phone as phone22_129_2_, aduser6_.phone2 as phone23_129_2_, aduser6_.fax as fax24_129_2_, aduser6_.lastcontact as lastcon25_129_2_, aduser6_.lastresult as lastres26_129_2_, aduser6_.birthday as birthda27_129_2_, aduser6_.ad_orgtrx_id as ad_orgt28_129_2_, aduser6_.firstname as firstna29_129_2_, aduser6_.lastname as lastnam30_129_2_, aduser6_.username as usernam31_129_2_, aduser6_.default_ad_client_id as default32_129_2_, aduser6_.default_ad_language as default33_129_2_, aduser6_.default_ad_org_id as default34_129_2_, aduser6_.default_ad_role_id as default35_129_2_, aduser6_.default_m_warehouse_id as default36_129_2_, aduser6_.islocked as islocke37_129_2_, aduser6_.ad_image_id as ad_imag38_129_2_, aduser6_.grant_portal_access as grant_p39_129_2_, aduser6_.lastpasswordupdate as lastpas40_129_2_, aduser6_.isexpiredpassword as isexpir41_129_2_, aduser6_.em_obpos_default_pos_role as em_obpo42_129_2_, aduser6_.commercialauth as commerc43_129_2_, aduser6_.viasms as viasms44_129_2_, aduser6_.viaemail as viaemai45_129_2_, aduser6_.em_pruti_isbillingcontact as em_prut46_129_2_, aduser6_.em_pruti_isordercontact as em_prut47_129_2_, aduser6_.em_smfsws_default_ws_role_id as em_smfs48_129_2_, aduser6_.em_pruti_ispurchaseordcontact as em_prut49_129_2_, aduser6_.em_pruti_isshipmentcontact as em_prut50_129_2_, aduser6_.em_primpa_iscontact as em_prim51_129_2_, aduser6_.em_obretco_default_pos_contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join c_order order1_ on invoicecan0_.c_order_id = order1_.c_order_id inner join ad_org organizati2_ on invoicecan0_.ad_org_id = organizati2_.ad_org_id inner join c_bpartner businesspa3_ on invoicecan0_.c_bpartner_id = businesspa3_.c_bpartner_id inner join c_doctype documentty4_ on invoicecan0_.c_doctype_id = documentty4_.c_doctype_id inner join ad_user aduser5_ on invoicecan0_.createdby = aduser5_.ad_user_id inner join ad_user aduser6_ on invoicecan0_.updatedby = aduser6_.ad_user_id where (invoicecan0_.term = ? and invoicecan0_.qtydelivered <> ? and (? = ? and (exists ( select ? from c_orderline orderline7_ where orderline7_.c_order_id = order1_.c_order_id and orderline7_.qtydelivered - orderline7_.qtyinvoiced <> ?)) or ? = ?) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline8_ where orderline8_.c_order_id = order1_.c_order_id and orderline8_.qtyordered - orderline8_.qtyinvoiced <> ?)) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline9_ where orderline9_.c_order_id = order1_.c_order_id and orderline9_.qtydelivered <> ? and orderline9_.qtydelivered <> orderline9_.qtyinvoiced)) or invoicecan0_.term = ? and invoicecan0_.qtyordered = invoicecan0_.qtydelivered) and (invoicecan0_.ad_client_id in (...)) and (invoicecan0_.ad_org_id in (...)) and (upper(businesspa3_.name) like upper(?) escape ?) order by organizati2_.name, businesspa3_.name, invoicecan0_.dateordered limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 16 12 4 8s243ms 2s60ms 17 5 10s382ms 2s76ms [ User: tad - Total duration: 18s626ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 18s626ms - Times executed: 9 ]
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (upper(businesspa3_.Name) like upper('%AJUN%') escape '|') order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:32:52 Duration: 2s198ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (upper(businesspa3_.Name) like upper('%A%') escape '|') order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 17:32:51 Duration: 2s137ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf42_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf43_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf44_224_0_, documentty4_.EM_Prwss_Is_Ws_Type as em_prws45_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf46_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg47_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut48_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut49_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut50_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut51_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut52_224_0_, documentty4_.EM_Pruti_Email as em_prut53_224_0_, documentty4_.EM_Pruti_Url as em_prut54_224_0_, documentty4_.EM_Pruti_Phone as em_prut55_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut56_224_0_, documentty4_.EM_Pruti_Fax as em_prut57_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.LastPasswordUpdate as lastpas40_129_1_, aduser5_.Isexpiredpassword as isexpir41_129_1_, aduser5_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_1_, aduser5_.Commercialauth as commerc43_129_1_, aduser5_.Viasms as viasms44_129_1_, aduser5_.Viaemail as viaemai45_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut46_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut47_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut50_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim51_129_1_, aduser5_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.LastPasswordUpdate as lastpas40_129_2_, aduser6_.Isexpiredpassword as isexpir41_129_2_, aduser6_.EM_OBPOS_Default_Pos_Role as em_obpo42_129_2_, aduser6_.Commercialauth as commerc43_129_2_, aduser6_.Viasms as viasms44_129_2_, aduser6_.Viaemail as viaemai45_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut46_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut47_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs48_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut49_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut50_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim51_129_2_, aduser6_.EM_OBRETCO_Default_Pos_Contact as em_obre52_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (invoicecan0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (upper(businesspa3_.Name) like upper('%talh%') escape '|') order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 12:45:30 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 1s920ms 2s29ms 1s968ms 5 9s841ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ? offset ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 16 10 5 9s841ms 1s968ms [ User: tad - Total duration: 9s841ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 9s841ms - Times executed: 5 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '400';
Date: 2026-07-16 10:48:42 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-16 10:48:35 Duration: 1s999ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'E69E2D002CCB4024A16DD21B1C0522FB') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '500';
Date: 2026-07-16 10:48:45 Duration: 1s954ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 1s24ms 3s493ms 1s725ms 4 6s901ms select * from ( select distinct ad_column_identifier (?, fin_payment_schedule.c_invoice_id, ?) as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = ? group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, ?)) order by ?) 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 #15
Day Hour Count Duration Avg duration Jul 16 14 1 1s214ms 1s214ms 15 1 1s168ms 1s168ms 16 1 3s493ms 3s493ms 17 1 1s24ms 1s24ms [ User: tad - Total duration: 6s901ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 6s901ms - Times executed: 4 ]
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 16:00:05 Duration: 3s493ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 14:00:03 Duration: 1s214ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 15:00:02 Duration: 1s168ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 1s356ms 2s61ms 1s625ms 3 4s877ms select max(financialm0_.fact_acct_id) as col_0_0_, financialm0_.ad_client_id as col_1_0_, financialm4_.ad_org_id as col_2_0_, max(financialm0_.created) as col_3_0_, max(financialm0_.createdby) as col_4_0_, max(financialm0_.updated) as col_5_0_, max(financialm0_.updatedby) as col_6_0_, max(financialm0_.isactive) as col_7_0_, max(financialm0_.fact_acct_id) as col_8_0_, max(financialm0_.description) as col_9_0_, financialm4_.c_periodcontrol_id as col_10_0_, ( select financialm5_.name from c_acctschema financialm5_ where financialm0_.c_acctschema_id = financialm5_.c_acctschema_id) as col_11_0_, ( select financialm6_.value from c_elementvalue financialm6_ where financialm0_.account_id = financialm6_.c_elementvalue_id) as col_12_0_, financialm0_.factaccttype as col_13_0_, case when sum(financialm0_.amtacctdr - financialm0_.amtacctcr) > ? then sum(financialm0_.amtacctdr - financialm0_.amtacctcr) else ? end as col_14_0_, case when sum(financialm0_.amtacctcr - financialm0_.amtacctdr) > ? then sum(financialm0_.amtacctcr - financialm0_.amtacctdr) else ? end as col_15_0_ from fact_acct financialm0_ inner join c_period financialm1_ on financialm0_.c_period_id = financialm1_.c_period_id inner join ad_org organizati2_ on financialm0_.ad_org_id = organizati2_.ad_org_id cross join c_period financialm3_ inner join c_periodcontrol financialm4_ on financialm3_.c_period_id = financialm4_.c_period_id where (financialm0_.factaccttype in (...)) and financialm1_.c_year_id = financialm3_.c_year_id and financialm4_.ad_org_id = organizati2_.ad_periodcontrolallowed_org_id and (financialm0_.ad_client_id in (...)) and (financialm0_.ad_org_id in (...)) and financialm4_.c_periodcontrol_id = ? group by financialm0_.ad_client_id, financialm4_.c_periodcontrol_id, financialm0_.c_acctschema_id, financialm0_.account_id, financialm0_.factaccttype, financialm1_.c_year_id, financialm4_.ad_org_id having sum(financialm0_.amtacctcr - financialm0_.amtacctdr) <> ? order by financialm0_.factaccttype desc, col_14_0_ desc, col_15_0_ desc limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 16 13 3 4s877ms 1s625ms [ User: tad - Total duration: 4s877ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s877ms - Times executed: 3 ]
-
select max(financialm0_.Fact_Acct_ID) as col_0_0_, financialm0_.AD_Client_ID as col_1_0_, financialm4_.AD_Org_ID as col_2_0_, max(financialm0_.Created) as col_3_0_, max(financialm0_.CreatedBy) as col_4_0_, max(financialm0_.Updated) as col_5_0_, max(financialm0_.UpdatedBy) as col_6_0_, max(financialm0_.IsActive) as col_7_0_, max(financialm0_.Fact_Acct_ID) as col_8_0_, max(financialm0_.Description) as col_9_0_, financialm4_.C_PeriodControl_ID as col_10_0_, ( select financialm5_.Name from C_AcctSchema financialm5_ where financialm0_.C_AcctSchema_ID = financialm5_.C_AcctSchema_ID) as col_11_0_, ( select financialm6_.Value from C_ElementValue financialm6_ where financialm0_.Account_ID = financialm6_.C_ElementValue_ID) as col_12_0_, financialm0_.FactAcctType as col_13_0_, case when sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) > 0 then sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) else 0 end as col_14_0_, case when sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) > 0 then sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) else 0 end as col_15_0_ from Fact_Acct financialm0_ inner join C_Period financialm1_ on financialm0_.C_Period_ID = financialm1_.C_Period_ID inner join AD_Org organizati2_ on financialm0_.AD_Org_ID = organizati2_.AD_Org_ID cross join C_Period financialm3_ inner join C_PeriodControl financialm4_ on financialm3_.C_Period_ID = financialm4_.C_Period_ID where (financialm0_.FactAcctType in ('O', 'C', 'D', 'R')) and financialm1_.C_Year_ID = financialm3_.C_Year_ID and financialm4_.AD_Org_ID = organizati2_.AD_Periodcontrolallowed_Org_ID and (financialm0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (financialm0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and financialm4_.C_PeriodControl_ID = 'FF610BDCC0444034B64F282137C0D2D8' group by financialm0_.AD_Client_ID, financialm4_.C_PeriodControl_ID, financialm0_.C_AcctSchema_ID, financialm0_.Account_ID, financialm0_.FactAcctType, financialm1_.C_Year_ID, financialm4_.AD_Org_ID having sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) <> 0 order by financialm0_.FactAcctType DESC, col_14_0_ DESC, col_15_0_ DESC limit '101';
Date: 2026-07-16 13:17:10 Duration: 2s61ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select max(financialm0_.Fact_Acct_ID) as col_0_0_, financialm0_.AD_Client_ID as col_1_0_, financialm4_.AD_Org_ID as col_2_0_, max(financialm0_.Created) as col_3_0_, max(financialm0_.CreatedBy) as col_4_0_, max(financialm0_.Updated) as col_5_0_, max(financialm0_.UpdatedBy) as col_6_0_, max(financialm0_.IsActive) as col_7_0_, max(financialm0_.Fact_Acct_ID) as col_8_0_, max(financialm0_.Description) as col_9_0_, financialm4_.C_PeriodControl_ID as col_10_0_, ( select financialm5_.Name from C_AcctSchema financialm5_ where financialm0_.C_AcctSchema_ID = financialm5_.C_AcctSchema_ID) as col_11_0_, ( select financialm6_.Value from C_ElementValue financialm6_ where financialm0_.Account_ID = financialm6_.C_ElementValue_ID) as col_12_0_, financialm0_.FactAcctType as col_13_0_, case when sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) > 0 then sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) else 0 end as col_14_0_, case when sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) > 0 then sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) else 0 end as col_15_0_ from Fact_Acct financialm0_ inner join C_Period financialm1_ on financialm0_.C_Period_ID = financialm1_.C_Period_ID inner join AD_Org organizati2_ on financialm0_.AD_Org_ID = organizati2_.AD_Org_ID cross join C_Period financialm3_ inner join C_PeriodControl financialm4_ on financialm3_.C_Period_ID = financialm4_.C_Period_ID where (financialm0_.FactAcctType in ('O', 'C', 'D', 'R')) and financialm1_.C_Year_ID = financialm3_.C_Year_ID and financialm4_.AD_Org_ID = organizati2_.AD_Periodcontrolallowed_Org_ID and (financialm0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (financialm0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and financialm4_.C_PeriodControl_ID = 'FF610BDCC0444034B64F282137C0D2D8' group by financialm0_.AD_Client_ID, financialm4_.C_PeriodControl_ID, financialm0_.C_AcctSchema_ID, financialm0_.Account_ID, financialm0_.FactAcctType, financialm1_.C_Year_ID, financialm4_.AD_Org_ID having sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) <> 0 order by financialm0_.FactAcctType DESC, col_14_0_ DESC, col_15_0_ DESC limit '101';
Date: 2026-07-16 13:17:40 Duration: 1s460ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select max(financialm0_.Fact_Acct_ID) as col_0_0_, financialm0_.AD_Client_ID as col_1_0_, financialm4_.AD_Org_ID as col_2_0_, max(financialm0_.Created) as col_3_0_, max(financialm0_.CreatedBy) as col_4_0_, max(financialm0_.Updated) as col_5_0_, max(financialm0_.UpdatedBy) as col_6_0_, max(financialm0_.IsActive) as col_7_0_, max(financialm0_.Fact_Acct_ID) as col_8_0_, max(financialm0_.Description) as col_9_0_, financialm4_.C_PeriodControl_ID as col_10_0_, ( select financialm5_.Name from C_AcctSchema financialm5_ where financialm0_.C_AcctSchema_ID = financialm5_.C_AcctSchema_ID) as col_11_0_, ( select financialm6_.Value from C_ElementValue financialm6_ where financialm0_.Account_ID = financialm6_.C_ElementValue_ID) as col_12_0_, financialm0_.FactAcctType as col_13_0_, case when sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) > 0 then sum(financialm0_.AmtAcctDr - financialm0_.AmtAcctCr) else 0 end as col_14_0_, case when sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) > 0 then sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) else 0 end as col_15_0_ from Fact_Acct financialm0_ inner join C_Period financialm1_ on financialm0_.C_Period_ID = financialm1_.C_Period_ID inner join AD_Org organizati2_ on financialm0_.AD_Org_ID = organizati2_.AD_Org_ID cross join C_Period financialm3_ inner join C_PeriodControl financialm4_ on financialm3_.C_Period_ID = financialm4_.C_Period_ID where (financialm0_.FactAcctType in ('O', 'C', 'D', 'R')) and financialm1_.C_Year_ID = financialm3_.C_Year_ID and financialm4_.AD_Org_ID = organizati2_.AD_Periodcontrolallowed_Org_ID and (financialm0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (financialm0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and financialm4_.C_PeriodControl_ID = 'FF610BDCC0444034B64F282137C0D2D8' group by financialm0_.AD_Client_ID, financialm4_.C_PeriodControl_ID, financialm0_.C_AcctSchema_ID, financialm0_.Account_ID, financialm0_.FactAcctType, financialm1_.C_Year_ID, financialm4_.AD_Org_ID having sum(financialm0_.AmtAcctCr - financialm0_.AmtAcctDr) <> 0 order by financialm0_.FactAcctType DESC, col_14_0_ DESC, col_15_0_ DESC limit '101';
Date: 2026-07-16 13:17:16 Duration: 1s356ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 1s240ms 1s300ms 1s266ms 5 6s333ms select product1_.value as col_0_0_, product1_.m_product_id as col_1_0_, pricingpri2_.m_pricelist_version_id as col_2_0_, pricingpri2_.name as col_3_0_, currency4_.c_currency_id as col_4_0_, pricingpro0_.pricelimit as col_5_0_, product1_.name as col_6_0_, product1_.c_uom_id as col_7_0_, pricingpro0_.pricestd as col_8_0_, pricingpro0_.pricelist as col_9_0_, pricingpri3_.issopricelist as col_10_0_, product1_.characteristic_desc as col_11_0_, product5_.name as col_12_0_, product1_.upc as col_13_0_, pricingpri2_.m_pricelist_version_id as m_pricel1_551_0_, uom6_.c_uom_id as c_uom_id1_324_1_, pricingpri2_.ad_client_id as ad_clien2_551_0_, pricingpri2_.ad_org_id as ad_org_i3_551_0_, pricingpri2_.isactive as isactive4_551_0_, pricingpri2_.created as created5_551_0_, pricingpri2_.createdby as createdb6_551_0_, pricingpri2_.updated as updated7_551_0_, pricingpri2_.updatedby as updatedb8_551_0_, pricingpri2_.name as name9_551_0_, pricingpri2_.description as descrip10_551_0_, pricingpri2_.m_pricelist_id as m_price11_551_0_, pricingpri2_.m_discountschema_id as m_disco12_551_0_, pricingpri2_.validfrom as validfr13_551_0_, pricingpri2_.proccreate as proccre14_551_0_, pricingpri2_.m_pricelist_version_base_id as m_price15_551_0_, pricingpri2_.m_pricelist_version_generate as m_price16_551_0_, pricingpri2_.em_pruti_import_prices as em_prut17_551_0_, uom6_.ad_client_id as ad_clien2_324_1_, uom6_.ad_org_id as ad_org_i3_324_1_, uom6_.isactive as isactive4_324_1_, uom6_.created as created5_324_1_, uom6_.updated as updated6_324_1_, uom6_.createdby as createdb7_324_1_, uom6_.updatedby as updatedb8_324_1_, uom6_.x12de355 as x9_324_1_, uom6_.uomsymbol as uomsymb10_324_1_, uom6_.name as name11_324_1_, uom6_.description as descrip12_324_1_, uom6_.stdprecision as stdprec13_324_1_, uom6_.costingprecision as costing14_324_1_, uom6_.isdefault as isdefau15_324_1_, uom6_.breakdown as breakdo16_324_1_, uom6_.uom_type as uom_typ17_324_1_, uom6_.useinproduction as useinpr18_324_1_ from m_productprice pricingpro0_ inner join m_product product1_ on pricingpro0_.m_product_id = product1_.m_product_id inner join m_pricelist_version pricingpri2_ on pricingpro0_.m_pricelist_version_id = pricingpri2_.m_pricelist_version_id inner join m_pricelist pricingpri3_ on pricingpri2_.m_pricelist_id = pricingpri3_.m_pricelist_id left outer join c_currency currency4_ on pricingpri3_.c_currency_id = currency4_.c_currency_id left outer join m_product product5_ on product1_.generic_product_id = product5_.m_product_id inner join c_uom uom6_ on product1_.c_uom_id = uom6_.c_uom_id where product1_.isgeneric = ? and product1_.isactive = ? and pricingpri2_.isactive = ? and (product1_.ad_client_id in (...)) and (product1_.ad_org_id in (...)) and pricingpri3_.issopricelist = ? and currency4_.c_currency_id = ? and (upper(product1_.upc) like upper(?) or upper(product1_.value) like upper(?) or upper(product1_.name) like upper(?)) and (upper(pricingpri2_.name) like upper(?)) and pricingpri2_.m_pricelist_version_id = ? order by ? limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 16 09 2 2s561ms 1s280ms 10 3 3s771ms 1s257ms [ User: tad - Total duration: 6s333ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 6s333ms - Times executed: 5 ]
-
select product1_.Value as col_0_0_, product1_.M_Product_ID as col_1_0_, pricingpri2_.M_PriceList_Version_ID as col_2_0_, pricingpri2_.Name as col_3_0_, currency4_.C_Currency_ID as col_4_0_, pricingpro0_.PriceLimit as col_5_0_, product1_.Name as col_6_0_, product1_.C_UOM_ID as col_7_0_, pricingpro0_.PriceStd as col_8_0_, pricingpro0_.PriceList as col_9_0_, pricingpri3_.IsSOPriceList as col_10_0_, product1_.Characteristic_Desc as col_11_0_, product5_.Name as col_12_0_, product1_.UPC as col_13_0_, pricingpri2_.M_PriceList_Version_ID as m_pricel1_551_0_, uom6_.C_UOM_ID as c_uom_id1_324_1_, pricingpri2_.AD_Client_ID as ad_clien2_551_0_, pricingpri2_.AD_Org_ID as ad_org_i3_551_0_, pricingpri2_.IsActive as isactive4_551_0_, pricingpri2_.Created as created5_551_0_, pricingpri2_.CreatedBy as createdb6_551_0_, pricingpri2_.Updated as updated7_551_0_, pricingpri2_.UpdatedBy as updatedb8_551_0_, pricingpri2_.Name as name9_551_0_, pricingpri2_.Description as descrip10_551_0_, pricingpri2_.M_PriceList_ID as m_price11_551_0_, pricingpri2_.M_DiscountSchema_ID as m_disco12_551_0_, pricingpri2_.ValidFrom as validfr13_551_0_, pricingpri2_.ProcCreate as proccre14_551_0_, pricingpri2_.M_Pricelist_Version_Base_ID as m_price15_551_0_, pricingpri2_.M_Pricelist_Version_Generate as m_price16_551_0_, pricingpri2_.EM_Pruti_Import_Prices as em_prut17_551_0_, uom6_.AD_Client_ID as ad_clien2_324_1_, uom6_.AD_Org_ID as ad_org_i3_324_1_, uom6_.IsActive as isactive4_324_1_, uom6_.Created as created5_324_1_, uom6_.Updated as updated6_324_1_, uom6_.CreatedBy as createdb7_324_1_, uom6_.UpdatedBy as updatedb8_324_1_, uom6_.X12DE355 as x9_324_1_, uom6_.UOMSymbol as uomsymb10_324_1_, uom6_.Name as name11_324_1_, uom6_.Description as descrip12_324_1_, uom6_.StdPrecision as stdprec13_324_1_, uom6_.CostingPrecision as costing14_324_1_, uom6_.IsDefault as isdefau15_324_1_, uom6_.Breakdown as breakdo16_324_1_, uom6_.UOM_Type as uom_typ17_324_1_, uom6_.Useinproduction as useinpr18_324_1_ from M_ProductPrice pricingpro0_ inner join M_Product product1_ on pricingpro0_.M_Product_ID = product1_.M_Product_ID inner join M_PriceList_Version pricingpri2_ on pricingpro0_.M_PriceList_Version_ID = pricingpri2_.M_PriceList_Version_ID inner join M_PriceList pricingpri3_ on pricingpri2_.M_PriceList_ID = pricingpri3_.M_PriceList_ID left outer join C_Currency currency4_ on pricingpri3_.C_Currency_ID = currency4_.C_Currency_ID left outer join M_Product product5_ on product1_.Generic_Product_ID = product5_.M_Product_ID inner join C_UOM uom6_ on product1_.C_UOM_ID = uom6_.C_UOM_ID where product1_.IsGeneric = 'N' and product1_.IsActive = 'Y' and pricingpri2_.IsActive = 'Y' and (product1_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (product1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and pricingpri3_.IsSOPriceList = 'Y' and currency4_.C_Currency_ID = '102' and (upper(product1_.UPC) like upper('%HP%SUPE%') or upper(product1_.Value) like upper('%HP%SUPE%') or upper(product1_.Name) like upper('%HP%SUPE%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-16 09:41:00 Duration: 1s300ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select product1_.Value as col_0_0_, product1_.M_Product_ID as col_1_0_, pricingpri2_.M_PriceList_Version_ID as col_2_0_, pricingpri2_.Name as col_3_0_, currency4_.C_Currency_ID as col_4_0_, pricingpro0_.PriceLimit as col_5_0_, product1_.Name as col_6_0_, product1_.C_UOM_ID as col_7_0_, pricingpro0_.PriceStd as col_8_0_, pricingpro0_.PriceList as col_9_0_, pricingpri3_.IsSOPriceList as col_10_0_, product1_.Characteristic_Desc as col_11_0_, product5_.Name as col_12_0_, product1_.UPC as col_13_0_, pricingpri2_.M_PriceList_Version_ID as m_pricel1_551_0_, uom6_.C_UOM_ID as c_uom_id1_324_1_, pricingpri2_.AD_Client_ID as ad_clien2_551_0_, pricingpri2_.AD_Org_ID as ad_org_i3_551_0_, pricingpri2_.IsActive as isactive4_551_0_, pricingpri2_.Created as created5_551_0_, pricingpri2_.CreatedBy as createdb6_551_0_, pricingpri2_.Updated as updated7_551_0_, pricingpri2_.UpdatedBy as updatedb8_551_0_, pricingpri2_.Name as name9_551_0_, pricingpri2_.Description as descrip10_551_0_, pricingpri2_.M_PriceList_ID as m_price11_551_0_, pricingpri2_.M_DiscountSchema_ID as m_disco12_551_0_, pricingpri2_.ValidFrom as validfr13_551_0_, pricingpri2_.ProcCreate as proccre14_551_0_, pricingpri2_.M_Pricelist_Version_Base_ID as m_price15_551_0_, pricingpri2_.M_Pricelist_Version_Generate as m_price16_551_0_, pricingpri2_.EM_Pruti_Import_Prices as em_prut17_551_0_, uom6_.AD_Client_ID as ad_clien2_324_1_, uom6_.AD_Org_ID as ad_org_i3_324_1_, uom6_.IsActive as isactive4_324_1_, uom6_.Created as created5_324_1_, uom6_.Updated as updated6_324_1_, uom6_.CreatedBy as createdb7_324_1_, uom6_.UpdatedBy as updatedb8_324_1_, uom6_.X12DE355 as x9_324_1_, uom6_.UOMSymbol as uomsymb10_324_1_, uom6_.Name as name11_324_1_, uom6_.Description as descrip12_324_1_, uom6_.StdPrecision as stdprec13_324_1_, uom6_.CostingPrecision as costing14_324_1_, uom6_.IsDefault as isdefau15_324_1_, uom6_.Breakdown as breakdo16_324_1_, uom6_.UOM_Type as uom_typ17_324_1_, uom6_.Useinproduction as useinpr18_324_1_ from M_ProductPrice pricingpro0_ inner join M_Product product1_ on pricingpro0_.M_Product_ID = product1_.M_Product_ID inner join M_PriceList_Version pricingpri2_ on pricingpro0_.M_PriceList_Version_ID = pricingpri2_.M_PriceList_Version_ID inner join M_PriceList pricingpri3_ on pricingpri2_.M_PriceList_ID = pricingpri3_.M_PriceList_ID left outer join C_Currency currency4_ on pricingpri3_.C_Currency_ID = currency4_.C_Currency_ID left outer join M_Product product5_ on product1_.Generic_Product_ID = product5_.M_Product_ID inner join C_UOM uom6_ on product1_.C_UOM_ID = uom6_.C_UOM_ID where product1_.IsGeneric = 'N' and product1_.IsActive = 'Y' and pricingpri2_.IsActive = 'Y' and (product1_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (product1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and pricingpri3_.IsSOPriceList = 'Y' and currency4_.C_Currency_ID = '102' and (upper(product1_.UPC) like upper('%ATE605%') or upper(product1_.Value) like upper('%ATE605%') or upper(product1_.Name) like upper('%ATE605%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-16 10:44:13 Duration: 1s280ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select product1_.Value as col_0_0_, product1_.M_Product_ID as col_1_0_, pricingpri2_.M_PriceList_Version_ID as col_2_0_, pricingpri2_.Name as col_3_0_, currency4_.C_Currency_ID as col_4_0_, pricingpro0_.PriceLimit as col_5_0_, product1_.Name as col_6_0_, product1_.C_UOM_ID as col_7_0_, pricingpro0_.PriceStd as col_8_0_, pricingpro0_.PriceList as col_9_0_, pricingpri3_.IsSOPriceList as col_10_0_, product1_.Characteristic_Desc as col_11_0_, product5_.Name as col_12_0_, product1_.UPC as col_13_0_, pricingpri2_.M_PriceList_Version_ID as m_pricel1_551_0_, uom6_.C_UOM_ID as c_uom_id1_324_1_, pricingpri2_.AD_Client_ID as ad_clien2_551_0_, pricingpri2_.AD_Org_ID as ad_org_i3_551_0_, pricingpri2_.IsActive as isactive4_551_0_, pricingpri2_.Created as created5_551_0_, pricingpri2_.CreatedBy as createdb6_551_0_, pricingpri2_.Updated as updated7_551_0_, pricingpri2_.UpdatedBy as updatedb8_551_0_, pricingpri2_.Name as name9_551_0_, pricingpri2_.Description as descrip10_551_0_, pricingpri2_.M_PriceList_ID as m_price11_551_0_, pricingpri2_.M_DiscountSchema_ID as m_disco12_551_0_, pricingpri2_.ValidFrom as validfr13_551_0_, pricingpri2_.ProcCreate as proccre14_551_0_, pricingpri2_.M_Pricelist_Version_Base_ID as m_price15_551_0_, pricingpri2_.M_Pricelist_Version_Generate as m_price16_551_0_, pricingpri2_.EM_Pruti_Import_Prices as em_prut17_551_0_, uom6_.AD_Client_ID as ad_clien2_324_1_, uom6_.AD_Org_ID as ad_org_i3_324_1_, uom6_.IsActive as isactive4_324_1_, uom6_.Created as created5_324_1_, uom6_.Updated as updated6_324_1_, uom6_.CreatedBy as createdb7_324_1_, uom6_.UpdatedBy as updatedb8_324_1_, uom6_.X12DE355 as x9_324_1_, uom6_.UOMSymbol as uomsymb10_324_1_, uom6_.Name as name11_324_1_, uom6_.Description as descrip12_324_1_, uom6_.StdPrecision as stdprec13_324_1_, uom6_.CostingPrecision as costing14_324_1_, uom6_.IsDefault as isdefau15_324_1_, uom6_.Breakdown as breakdo16_324_1_, uom6_.UOM_Type as uom_typ17_324_1_, uom6_.Useinproduction as useinpr18_324_1_ from M_ProductPrice pricingpro0_ inner join M_Product product1_ on pricingpro0_.M_Product_ID = product1_.M_Product_ID inner join M_PriceList_Version pricingpri2_ on pricingpro0_.M_PriceList_Version_ID = pricingpri2_.M_PriceList_Version_ID inner join M_PriceList pricingpri3_ on pricingpri2_.M_PriceList_ID = pricingpri3_.M_PriceList_ID left outer join C_Currency currency4_ on pricingpri3_.C_Currency_ID = currency4_.C_Currency_ID left outer join M_Product product5_ on product1_.Generic_Product_ID = product5_.M_Product_ID inner join C_UOM uom6_ on product1_.C_UOM_ID = uom6_.C_UOM_ID where product1_.IsGeneric = 'N' and product1_.IsActive = 'Y' and pricingpri2_.IsActive = 'Y' and (product1_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (product1_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and pricingpri3_.IsSOPriceList = 'Y' and currency4_.C_Currency_ID = '102' and (upper(product1_.UPC) like upper('%HP%SUPER%%') or upper(product1_.Value) like upper('%HP%SUPER%%') or upper(product1_.Name) like upper('%HP%SUPER%%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-16 09:41:06 Duration: 1s260ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 1s88ms 1s957ms 1s208ms 15 18s128ms select * from ( select o.c_order_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, o.c_order_id, ?) || ? || sum(ol.linenetamt) || ? || o.totallines as description, ? as isactive, o.ad_org_id as ad_org_id, o.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, o.c_order_id, ?) as record_id from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) 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 #18
Day Hour Count Duration Avg duration Jul 16 07 1 1s263ms 1s263ms 08 1 1s129ms 1s129ms 09 1 1s171ms 1s171ms 10 1 1s110ms 1s110ms 11 1 1s194ms 1s194ms 12 1 1s97ms 1s97ms 13 1 1s196ms 1s196ms 14 1 1s957ms 1s957ms 15 1 1s135ms 1s135ms 16 1 1s191ms 1s191ms 17 1 1s174ms 1s174ms 18 1 1s88ms 1s88ms 19 1 1s157ms 1s157ms 20 1 1s89ms 1s89ms 21 1 1s171ms 1s171ms [ User: tad - Total duration: 18s128ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 18s128ms - Times executed: 15 ]
-
SELECT * FROM ( select o.c_order_id AS REFERENCEKEY_ID, '0' AS AD_ROLE_ID, NULL AS AD_USER_ID, 'Check totals of the next order ' || AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') || ' Lines: ' || sum(ol.linenetamt) || ' , Order: ' || o.totallines as DESCRIPTION, 'Y' AS ISACTIVE, o.AD_ORG_ID AS AD_ORG_ID, o.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, '0' AS CREATEDBY, now() AS UPDATED, '0' AS UPDATEDBY, AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') AS RECORD_ID from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '92F0537DB3A4485E95386FF56E727C80' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 14:00:01 Duration: 1s957ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select o.c_order_id AS REFERENCEKEY_ID, '0' AS AD_ROLE_ID, NULL AS AD_USER_ID, 'Check totals of the next order ' || AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') || ' Lines: ' || sum(ol.linenetamt) || ' , Order: ' || o.totallines as DESCRIPTION, 'Y' AS ISACTIVE, o.AD_ORG_ID AS AD_ORG_ID, o.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, '0' AS CREATEDBY, now() AS UPDATED, '0' AS UPDATEDBY, AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') AS RECORD_ID from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '92F0537DB3A4485E95386FF56E727C80' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 07:00:01 Duration: 1s263ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select o.c_order_id AS REFERENCEKEY_ID, '0' AS AD_ROLE_ID, NULL AS AD_USER_ID, 'Check totals of the next order ' || AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') || ' Lines: ' || sum(ol.linenetamt) || ' , Order: ' || o.totallines as DESCRIPTION, 'Y' AS ISACTIVE, o.AD_ORG_ID AS AD_ORG_ID, o.AD_CLIENT_ID AS AD_CLIENT_ID, now() AS CREATED, '0' AS CREATEDBY, now() AS UPDATED, '0' AS UPDATEDBY, AD_COLUMN_IDENTIFIER ('c_order', o.c_order_id, 'es_ES') AS RECORD_ID from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '92F0537DB3A4485E95386FF56E727C80' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 13:00:01 Duration: 1s196ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 1s2ms 2s315ms 1s170ms 12 14s40ms select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 16 08 1 1s517ms 1s517ms 10 6 6s139ms 1s23ms 13 1 2s315ms 2s315ms 14 4 4s67ms 1s16ms [ User: tad - Total duration: 14s40ms - Times executed: 12 ]
[ Application: openbravo - Total duration: 14s40ms - Times executed: 12 ]
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = '6BFB63A78EB74D33BCF96CA70B345A32';
Date: 2026-07-16 13:48:18 Duration: 2s315ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = 'A0EA6676758A431D97D0EF94B42A67DF';
Date: 2026-07-16 08:06:53 Duration: 1s517ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select shipmentin0_.M_InOut_ID as m_inout_1_509_0_, shipmentin0_.AD_Client_ID as ad_clien2_509_0_, shipmentin0_.AD_Org_ID as ad_org_i3_509_0_, ( SELECT count(*) FROM c_bpartner as bp WHERE bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = 'Y') > 0) as formula34_0_, ( select C_GETINVOICESTATUSFROMSHIPMENT (shipmentin0_.m_inout_id) from dual) as formula35_0_ from M_InOut shipmentin0_ where shipmentin0_.M_InOut_ID = '7030BD9DBC1F4E9DB35DA9639DAE294A';
Date: 2026-07-16 10:50:16 Duration: 1s67ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 1s49ms 1s122ms 1s81ms 3 3s245ms select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> ? or coalesce(sd.qtyorderonhand, ?) <> ? union all select m_product_id, null, ?, ? from m_product p where p.isgeneric = ?) as ps where ((ps.qtyonhand <> ? and exists ( select ? from m_locator ml where ml.m_locator_id = ps.m_locator_id and exists ( select ? from ad_org_warehouse ow where ml.m_warehouse_id = ow.m_warehouse_id and ow.ad_org_id in (...)))) or (exists ( select ? from m_product mp where ps.m_product_id = mp.m_product_id and mp.isstocked = ? and mp.producttype = ? and ad_client_id = ?))) and not exists ( select ? from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = ?) and exists ( select ? from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = ? and mp.producttype = ? and ad_client_id = ?);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 16 07 1 1s122ms 1s122ms 13 1 1s73ms 1s73ms 21 1 1s49ms 1s49ms [ User: tad - Total duration: 3s245ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s245ms - Times executed: 3 ]
-
select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> 0 OR COALESCE(sd.qtyorderonhand, 0) <> 0 union ALL select m_product_id, null, 0, 0 FROM m_product p WHERE p.isgeneric = 'N') as ps where ((ps.qtyonhand <> 0 AND EXISTS ( SELECT 1 FROM m_locator ml WHERE ml.m_locator_id = ps.m_locator_id AND EXISTS ( SELECT 1 FROM AD_Org_Warehouse ow WHERE ml.m_warehouse_id = ow.m_warehouse_id AND ow.ad_org_id IN ('FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6')))) OR (EXISTS ( SELECT 1 FROM m_product mp WHERE ps.m_product_id = mp.m_product_id AND mp.isstocked = 'N' AND mp.producttype = 'I' AND ad_client_id = 'FF80818133B7413E0133B7164D6A0002'))) AND NOT EXISTS ( select 1 from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = '52ABADF5F9C04311B0A0E8FD21244670') AND exists ( select 1 from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = 'Y' and mp.producttype = 'I' and ad_client_id = 'FF80818133B7413E0133B7164D6A0002');
Date: 2026-07-16 07:00:01 Duration: 1s122ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> 0 OR COALESCE(sd.qtyorderonhand, 0) <> 0 union ALL select m_product_id, null, 0, 0 FROM m_product p WHERE p.isgeneric = 'N') as ps where ((ps.qtyonhand <> 0 AND EXISTS ( SELECT 1 FROM m_locator ml WHERE ml.m_locator_id = ps.m_locator_id AND EXISTS ( SELECT 1 FROM AD_Org_Warehouse ow WHERE ml.m_warehouse_id = ow.m_warehouse_id AND ow.ad_org_id IN ('FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6')))) OR (EXISTS ( SELECT 1 FROM m_product mp WHERE ps.m_product_id = mp.m_product_id AND mp.isstocked = 'N' AND mp.producttype = 'I' AND ad_client_id = 'FF80818133B7413E0133B7164D6A0002'))) AND NOT EXISTS ( select 1 from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = '52ABADF5F9C04311B0A0E8FD21244670') AND exists ( select 1 from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = 'Y' and mp.producttype = 'I' and ad_client_id = 'FF80818133B7413E0133B7164D6A0002');
Date: 2026-07-16 13:00:01 Duration: 1s73ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> 0 OR COALESCE(sd.qtyorderonhand, 0) <> 0 union ALL select m_product_id, null, 0, 0 FROM m_product p WHERE p.isgeneric = 'N') as ps where ((ps.qtyonhand <> 0 AND EXISTS ( SELECT 1 FROM m_locator ml WHERE ml.m_locator_id = ps.m_locator_id AND EXISTS ( SELECT 1 FROM AD_Org_Warehouse ow WHERE ml.m_warehouse_id = ow.m_warehouse_id AND ow.ad_org_id IN ('FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6')))) OR (EXISTS ( SELECT 1 FROM m_product mp WHERE ps.m_product_id = mp.m_product_id AND mp.isstocked = 'N' AND mp.producttype = 'I' AND ad_client_id = 'FF80818133B7413E0133B7164D6A0002'))) AND NOT EXISTS ( select 1 from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = '52ABADF5F9C04311B0A0E8FD21244670') AND exists ( select 1 from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = 'Y' and mp.producttype = 'I' and ad_client_id = 'FF80818133B7413E0133B7164D6A0002');
Date: 2026-07-16 21:00:01 Duration: 1s49ms 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
- 18,631 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
- 6 ERROR entries
- 0 WARNING entries
- 1 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 2 Max number of times the same event was reported
- 7 Total events found
Rank Times reported Error 1 2 ERROR: date/time field value out of range: "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 16 10 2 - ERROR: date/time field value out of range: "01012025"
- ERROR: date/time field value out of range: "01012025"
Context: PL/pgSQL function to_date(text) line 3 at RETURN
Statement: SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR),0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR),0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR-AMTACCTCR),0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT,'J') AS DATEACCTNUMBER, $1 AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype , 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM (SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE $2 WHEN 'BPartner' THEN c_bpartner.c_bpartner_id WHEN 'Product' THEN m_product.m_product_id WHEN 'Project' THEN c_project.c_project_id ELSE '' END AS groupbyid, CASE $3 WHEN 'BPartner' THEN (select to_char(name) from c_bpartner b where b.c_bpartner_id = c_bpartner.c_bpartner_id) WHEN 'Product' THEN (select to_char(value || ' - ' || name) from m_product p where p.m_product_id = m_product.m_product_id) WHEN 'Project' THEN (select to_char(value || ' - ' || name) from c_project pj where pj.c_project_id = c_project.c_project_id) ELSE '' END AS groupbyname, CASE WHEN (AMTACCTDR > 0 AND AMTACCTCR = 0) OR (AMTACCTCR < 0 AND AMTACCTDR = 0) THEN 'Y' ELSE 'N' END AS ISDEBIT, CASE WHEN FACT_ACCT.FACTACCTTYPE = 'O' THEN 1 ELSE (CASE WHEN FACT_ACCT.FACTACCTTYPE = 'N' THEN 2 ELSE (CASE WHEN FACT_ACCT.FACTACCTTYPE = 'R' THEN 3 ELSE (CASE WHEN FACT_ACCT.FACTACCTTYPE = 'C' THEN 4 END) END) END) END AS FACTACCTTYPE FROM FACT_ACCT LEFT JOIN C_BPARTNER ON FACT_ACCT.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID LEFT JOIN M_PRODUCT ON FACT_ACCT.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID LEFT JOIN C_PROJECT ON FACT_ACCT.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = $4 LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ($5='Y' OR FACT_ACCT.ACCOUNT_ID IN ( SELECT c_elementvalue_id as name FROM C_ELEMENTVALUE WHERE value >= ( select value from c_elementvalue where c_elementvalue_id = $6) and value <= ( select value from c_elementvalue where c_elementvalue_id = $7) and c_elementvalue.ELEMENTLEVEL = 'S' )) AND FACT_ACCT.AD_ORG_ID IN ('0','FF80818134D2AA330134F1D03034277D','FF80818134D2AA330134F1D11B372783','FF80818133B7413E0133B71974AD28C6','96BD3AC81C95427788B46A17146F4F7B') AND FACT_ACCT.AD_CLIENT_ID IN ('0','FF80818133B7413E0133B7164D6A0002') AND 1=1 AND FACT_ACCT.C_ACCTSCHEMA_ID = $8 AND FACT_ACCT.DATEACCT >= TO_DATE($9) AND FACT_ACCT.DATEACCT < TO_DATE($10) AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783','FF80818134D2AA330134F1D03034277D','FF80818133B7413E0133B71974AD28C6') AND 2=2 AND 3=3) D WHERE 6=6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0 ) C ) B WHERE 1=1Date: 2026-07-16 10:08:04 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function to_date(text) line 3 at RETURN
Statement: SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR),0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR),0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR-AMTACCTCR),0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT,'J') AS DATEACCTNUMBER, $1 AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype , 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM (SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE $2 WHEN 'BPartner' THEN c_bpartner.c_bpartner_id WHEN 'Product' THEN m_product.m_product_id WHEN 'Project' THEN c_project.c_project_id ELSE '' END AS groupbyid, CASE $3 WHEN 'BPartner' THEN (select to_char(name) from c_bpartner b where b.c_bpartner_id = c_bpartner.c_bpartner_id) WHEN 'Product' THEN (select to_char(value || ' - ' || name) from m_product p where p.m_product_id = m_product.m_product_id) WHEN 'Project' THEN (select to_char(value || ' - ' || name) from c_project pj where pj.c_project_id = c_project.c_project_id) ELSE '' END AS groupbyname, CASE WHEN (AMTACCTDR > 0 AND AMTACCTCR = 0) OR (AMTACCTCR < 0 AND AMTACCTDR = 0) THEN 'Y' ELSE 'N' END AS ISDEBIT, CASE WHEN FACT_ACCT.FACTACCTTYPE = 'O' THEN 1 ELSE (CASE WHEN FACT_ACCT.FACTACCTTYPE = 'N' THEN 2 ELSE (CASE WHEN FACT_ACCT.FACTACCTTYPE = 'R' THEN 3 ELSE (CASE WHEN FACT_ACCT.FACTACCTTYPE = 'C' THEN 4 END) END) END) END AS FACTACCTTYPE FROM FACT_ACCT LEFT JOIN C_BPARTNER ON FACT_ACCT.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID LEFT JOIN M_PRODUCT ON FACT_ACCT.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID LEFT JOIN C_PROJECT ON FACT_ACCT.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = $4 LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ($5='Y' OR FACT_ACCT.ACCOUNT_ID IN ( SELECT c_elementvalue_id as name FROM C_ELEMENTVALUE WHERE value >= ( select value from c_elementvalue where c_elementvalue_id = $6) and value <= ( select value from c_elementvalue where c_elementvalue_id = $7) and c_elementvalue.ELEMENTLEVEL = 'S' )) AND FACT_ACCT.AD_ORG_ID IN ('0','FF80818134D2AA330134F1D03034277D','FF80818134D2AA330134F1D11B372783','FF80818133B7413E0133B71974AD28C6','96BD3AC81C95427788B46A17146F4F7B') AND FACT_ACCT.AD_CLIENT_ID IN ('0','FF80818133B7413E0133B7164D6A0002') AND 1=1 AND FACT_ACCT.C_ACCTSCHEMA_ID = $8 AND FACT_ACCT.DATEACCT >= TO_DATE($9) AND FACT_ACCT.DATEACCT < TO_DATE($10) AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783','FF80818134D2AA330134F1D03034277D','FF80818133B7413E0133B71974AD28C6') AND 2=2 AND 3=3) D WHERE 6=6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0 ) C ) B WHERE 1=1Date: 2026-07-16 10:08:10 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
2 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 16 08 1 - ERROR: duplicate key value violates unique constraint "m_productprice_pricelist_ve_un"
Detail: Key (m_pricelist_version_id, m_product_id)=(FF80818134057575013437B0DD61026B, 1E22A6AA74214E33AE8E7661E37380C9) already exists.
Statement: insert into M_ProductPrice (M_PriceList_Version_ID, M_Product_ID, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, PriceList, PriceStd, PriceLimit, Cost, Algorithm, EM_Pruti_Inheritprice, EM_Pruti_Export_Prices, M_ProductPrice_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17)Date: 2026-07-16 08:09:49 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
3 1 ERROR: update or delete on table "..." violates foreign key constraint "..." on table "..."
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 16 15 1 - ERROR: update or delete on table "c_orderline" violates foreign key constraint "m_inoutline_c_orderline" on table "m_inoutline"
Detail: Key (c_orderline_id)=(5A349C15A0EE44F9BD238525563AB05D) is still referenced from table "m_inoutline".
Statement: delete from C_OrderLine where C_OrderLine_ID=$1Date: 2026-07-16 15:39:40 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
4 1 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 16 16 1 - LOG: process 2562531 still waiting for ShareLock on transaction 2976822 after 1000.128 ms
Detail: Process holding the lock: 2555088. Wait queue: 2562531.
Context: while updating tuple (4,48) in relation "ad_sequence" SQL statement "UPDATE AD_Sequence SET CurrentNext=CurrentNext + IncrementNo WHERE AD_Sequence_ID=v_Sequence_ID" PL/pgSQL function ad_sequence_doctype(character varying,character varying,character) line 54 at SQL statement SQL statement "SELECT * FROM Ad_Sequence_Doctype(v_DocType_ID, Cur_Order.C_Order_ID, 'Y')" PL/pgSQL function m_inout_create(character varying,character varying,character varying,character,character varying) line 845 at SQL statement SQL statement "SELECT * FROM M_INOUT_CREATE($1, $3, $4, $5, NULL)" PL/pgSQL function m_inout_create(character varying,character varying,character varying,character) line 3 at SQL statement SQL statement "SELECT * FROM M_Inout_Create(NULL, v_Record_ID, NULL, 'Y')" PL/pgSQL function c_order_post1(character varying,character varying,character varying) line 1632 at SQL statement SQL statement "SELECT C_ORDER_POST1($1, $2, 'Y')" PL/pgSQL function c_order_post1(character varying,character varying) line 3 at PERFORM SQL statement "SELECT C_ORDER_POST1(p_PInstance_ID, NULL)" PL/pgSQL function c_order_post(character varying) line 17 at PERFORM
Statement: SELECT * FROM C_ORDER_POST($1)Date: 2026-07-16 16:18:52 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
5 1 ERROR: @20501@
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 16 16 1 - ERROR: @20501@
Context: PL/pgSQL function c_invoicelinetax_trg() line 129 at RAISE
Statement: delete from C_InvoiceLineTax where C_InvoiceLineTax_ID=$1Date: 2026-07-16 16:09:51 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
6 1 ERROR: new row for relation "..." violates check constraint "..."
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 16 15 1 - ERROR: new row for relation "gl_journalline" violates check constraint "gl_journalline_mgl_glj_check"
Detail: Failing row contains (2B71321320A34CA4A0E50C975D9D1911, FF80818133B7413E0133B7164D6A0002, FF80818133B7413E0133B71974AD28C6, Y, 2026-07-16 15:19:12.291, FF80818134057575013433F1BAD70131, 2026-07-16 15:19:12.291, FF80818134057575013433F1BAD70131, 72B8442CE1514C50922E591241D8ECE3, 10, N, INGRÈS DESCONEGUT, 0, 0, 102, S, 1, 0.00, 0.00, 100, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, N, null, null, null, Y).
Statement: insert into GL_JournalLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, GL_Journal_ID, Line, IsGenerated, Description, AmtSourceDr, AmtSourceCr, C_Currency_ID, CurrencyRateType, CurrencyRate, AmtAcctDr, AmtAcctCr, C_UOM_ID, Open_Items, EM_Aprm_Addpayment, GL_JournalLine_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22)Date: 2026-07-16 15:19:12 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1