-
Global information
- Generated on Tue Jul 14 23:00:06 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 45,583 log entries in 5s
- Log start from 2026-07-14 07:00:01 to 2026-07-14 21:59:49
-
Overview
Global Stats
- 29 Number of unique normalized queries
- 292 Number of queries
- 34m34s Total query duration
- 2026-07-14 07:00:01 First query
- 2026-07-14 21:00:02 Last query
- 4 queries/s at 2026-07-14 08:10:09 Query peak
- 34m34s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 34m34s Execute total duration
- 210 Number of events
- 6 Number of unique normalized events
- 170 Max number of times the same event was reported
- 0 Number of cancellation
- 119 Total number of automatic vacuums
- 189 Total number of automatic analyzes
- 3,582 Number temporary file
- 274.86 MiB Max size of temporary file
- 7.04 MiB Average size of temporary file
- 3,322 Total number of sessions
- 11 sessions at 2026-07-14 08:10:08 Session peak
- 3d42m16s Total duration of sessions
- 1m18s Average duration of sessions
- 0 Average queries per session
- 624ms Average queries duration per session
- 1m18s Average idle time per session
- 3,320 Total number of connections
- 6 connections/s at 2026-07-14 08:10:08 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 4 queries/s Query Peak
- 2026-07-14 08:10:09 Date
SELECT Traffic
Key values
- 4 queries/s Query Peak
- 2026-07-14 08:10:09 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-14 13:18:15 Date
Queries duration
Key values
- 34m34s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 14 07 6 0ms 10s359ms 5s540ms 0ms 6s906ms 10s359ms 08 93 0ms 51s199ms 4s821ms 19s199ms 24s861ms 2m33s 09 34 0ms 46s857ms 4s786ms 6s843ms 14s739ms 57s461ms 10 26 0ms 7s512ms 2s338ms 6s253ms 7s151ms 8s495ms 11 19 0ms 7s127ms 4s528ms 7s16ms 7s57ms 13s913ms 12 10 0ms 7s393ms 4s100ms 3s59ms 7s123ms 8s394ms 13 6 0ms 6s996ms 4s229ms 0ms 6s793ms 6s996ms 14 2 0ms 1s141ms 1s71ms 0ms 0ms 2s143ms 15 48 0ms 51s465ms 7s85ms 14s818ms 46s622ms 2m31s 16 35 0ms 54s394ms 23s568ms 10s321ms 2m30s 6m8s 17 8 0ms 7s285ms 5s539ms 1s102ms 7s80ms 21s34ms 18 1 0ms 1s116ms 1s116ms 0ms 0ms 1s116ms 19 1 0ms 1s196ms 1s196ms 0ms 0ms 1s196ms 20 1 0ms 1s107ms 1s107ms 0ms 0ms 1s107ms 21 2 0ms 1s192ms 1s104ms 0ms 0ms 2s208ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 14 07 6 0 5s540ms 0ms 0ms 6s988ms 08 93 0 4s821ms 2s127ms 19s199ms 2m30s 09 34 0 4s786ms 1s 6s843ms 46s263ms 10 24 0 2s423ms 0ms 6s253ms 7s512ms 11 19 0 4s528ms 3s124ms 7s16ms 7s127ms 12 10 0 4s100ms 0ms 3s59ms 7s243ms 13 4 0 5s479ms 0ms 0ms 6s995ms 14 2 0 1s71ms 0ms 0ms 0ms 15 39 0 8s321ms 0ms 14s818ms 46s979ms 16 35 0 23s568ms 0ms 10s321ms 3m30s 17 8 0 5s539ms 0ms 1s102ms 7s114ms 18 1 0 1s116ms 0ms 0ms 0ms 19 1 0 1s196ms 0ms 0ms 0ms 20 1 0 1s107ms 0ms 0ms 0ms 21 2 0 1s104ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 14 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 2 0 1s314ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 2 0 1s730ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 9 0 1s726ms 0ms 0ms 2s479ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 14 07 0 6 6.00 0.00% 08 0 93 93.00 0.00% 09 0 33 33.00 0.00% 10 0 26 26.00 0.00% 11 0 19 19.00 0.00% 12 0 10 10.00 0.00% 13 0 6 6.00 0.00% 14 0 2 2.00 0.00% 15 0 48 48.00 0.00% 16 0 34 34.00 0.00% 17 0 8 8.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% Day Hour Count Average / Second Jul 14 07 217 0.06/s 08 233 0.06/s 09 224 0.06/s 10 220 0.06/s 11 219 0.06/s 12 223 0.06/s 13 220 0.06/s 14 217 0.06/s 15 226 0.06/s 16 221 0.06/s 17 226 0.06/s 18 217 0.06/s 19 219 0.06/s 20 217 0.06/s 21 221 0.06/s Day Hour Count Average Duration Average idle time Jul 14 07 219 49s665ms 49s513ms 08 233 3m34s 3m32s 09 224 13s424ms 12s697ms 10 220 57s979ms 57s703ms 11 219 47s886ms 47s494ms 12 223 2m18s 2m17s 13 220 51s94ms 50s978ms 14 217 20ms 10ms 15 223 3m34s 3m33s 16 224 1m57s 1m53s 17 226 1m29s 1m29s 18 217 20ms 14ms 19 219 43s50ms 43s44ms 20 217 18ms 13ms 21 221 2m8s 2m8s -
Connections
Established Connections
Key values
- 6 connections Connection Peak
- 2026-07-14 08:10:08 Date
Connections per database
Key values
- etendo Main Database
- 3,320 connections Total
Connections per user
Key values
- tad Main User
- 3,320 connections Total
-
Sessions
Simultaneous sessions
Key values
- 11 sessions Session Peak
- 2026-07-14 08:10:08 Date
Histogram of session times
Key values
- 3,238 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 3,322 sessions Total
Sessions per user
Key values
- tad Main User
- 3,322 sessions Total
Sessions per host
Key values
- 127.0.0.1 Main Host
- 3,322 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 72,728 buffers Checkpoint Peak
- 2026-07-14 14:47:39 Date
- 269.995 seconds Highest write time
- 0.005 seconds Sync time
Checkpoints Wal files
Key values
- 1 files Wal files usage Peak
- 2026-07-14 21:46:29 Date
Checkpoints distance
Key values
- 1,204.92 Mo Distance Peak
- 2026-07-14 14:47:39 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 14 07 12,831 1,275.591s 0.009s 1,275.612s 08 20,198 2,022.98s 0.019s 2,023.021s 09 16,325 1,547.731s 0.011s 1,547.757s 10 19,724 2,003.129s 0.015s 2,003.166s 11 17,251 1,627.377s 0.012s 1,627.411s 12 21,868 2,183.899s 0.019s 2,183.943s 13 15,868 1,509.63s 0.011s 1,509.655s 14 89,431 1,938.422s 0.017s 1,938.533s 15 86,165 2,040.665s 0.013s 2,040.751s 16 28,579 2,561.576s 0.017s 2,561.623s 17 18,495 1,735.636s 0.013s 1,735.664s 18 45,466 1,760.74s 0.011s 1,760.764s 19 14,924 1,441.955s 0.007s 1,441.973s 20 15,000 1,437.656s 0.007s 1,437.673s 21 14,869 1,437.458s 0.007s 1,438.231s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 14 07 0 6 0 662 0.001s 0.007s 08 0 9 0 2,345 0.001s 0.013s 09 0 8 0 1,487 0.001s 0.011s 10 0 10 0 1,867 0.001s 0.013s 11 0 8 0 1,618 0.001s 0.011s 12 0 9 0 2,272 0.001s 0.013s 13 0 8 0 1,075 0.001s 0.011s 14 0 48 0 607 0.001s 0.013s 15 0 37 0 1,076 0.001s 0.011s 16 0 11 0 2,277 0.001s 0.013s 17 0 8 0 1,630 0.001s 0.01s 18 0 8 0 636 0.001s 0.011s 19 0 7 0 385 0.001s 0.007s 20 0 5 1 369 0.001s 0.007s 21 0 0 6 362 0.001s 0.007s Day Hour Count Avg time (sec) Jul 14 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s Day Hour Mean distance Mean estimate Jul 14 07 12,456.25 kB 206,221.62 kB 08 11,904.23 kB 79,325.77 kB 09 11,528.36 kB 30,405.55 kB 10 11,912.54 kB 17,944.23 kB 11 12,051.45 kB 22,127.36 kB 12 12,463.85 kB 16,917.54 kB 13 10,786.55 kB 21,537.27 kB 14 61,207.38 kB 174,738.15 kB 15 54,061.09 kB 295,193.36 kB 16 14,439.38 kB 94,717.00 kB 17 12,564.45 kB 36,116.09 kB 18 11,882.18 kB 19,706.73 kB 19 14,320.71 kB 21,740.00 kB 20 14,805.86 kB 21,394.57 kB 21 15,276.14 kB 22,094.43 kB -
Temporary Files
Size of temporary files
Key values
- 453.41 MiB Temp Files size Peak
- 2026-07-14 15:35:17 Date
Number of temporary files
Key values
- 22 per second Temp Files Peak
- 2026-07-14 15:34:17 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 14 07 6 208.56 MiB 34.76 MiB 08 730 4.94 GiB 6.93 MiB 09 259 1.86 GiB 7.36 MiB 10 33 345.77 MiB 10.48 MiB 11 37 617.84 MiB 16.70 MiB 12 35 352.74 MiB 10.08 MiB 13 19 210.89 MiB 11.10 MiB 14 2 22.53 MiB 11.27 MiB 15 1,196 11.14 GiB 9.53 MiB 16 1,249 4.59 GiB 3.76 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 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 2,784 9.48 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', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');
Date: 2026-07-14 16:03:09 Duration: 54s394ms 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 ('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', 'B127D2C201914D83957980826A78C82C', 'AFB50D4E088C4FC2AD6C32945FE9FECF', '93637137CC3948A3B193C690B5CC5D8D', '856F5B487C8648F58E83575EB13770F2', '7FA2EEEC4C26405A8A58AA6A8C8A792E', '7CF147638FA5487BB3765E007252D8E8', '663F53DFEAE34DDCA2E80F641BEAE3BA', '63A32197912B4B71BF77B4EEF946B34D', '3F8B6D6F571041E3B3864C62A3E1AA58', '3AE19431A52440B3955BB7C2C58F1AB2', '012C07AC05CE42EB8D1002C4A1E8F7F3', 'E960B83A91454C4F9C4087C950B704F1', 'B4E1D66E2E5341F48D9FA65420AEDE98', 'A7A7EBF4540A4BE79A75116FE22D4042', '99BE82D25CA94D8A996459AD9BAEF5FB');
Date: 2026-07-14 16:03:18 Duration: 54s147ms 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 ('DA6D5109E0794236A336DF4E401DDF51', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');
Date: 2026-07-14 16:03:04 Duration: 53s951ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 224 781.38 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 = 'C88F465EDEA34CA39868816F4B96B901';
Date: 2026-07-14 08:32:14 Duration: 1s547ms 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 = 'A8CE9D1782EB4920B20E8B62846096EA';
Date: 2026-07-14 16:00:05 Duration: 1s150ms 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 = '2F08189EB11D4B95B70C015C9DD6077C';
Date: 2026-07-14 16:20:03 Duration: 1s105ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
3 144 2.90 GiB 12.91 MiB 45.02 MiB 20.62 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') 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%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:18 Duration: 2s174ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') 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/3760550%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' 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-14 15:34:51 Duration: 2s173ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') 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('%C2%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:17 Duration: 2s88ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
4 80 1.61 GiB 12.91 MiB 45.02 MiB 20.62 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/3553760%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:18 Duration: 2s311ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/3553%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:19 Duration: 2s277ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/355760%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:17 Duration: 2s173ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 71 2.47 GiB 34.19 MiB 37.30 MiB 35.66 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-14 08:08:11 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
6 64 1.29 GiB 12.91 MiB 45.02 MiB 20.62 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/3761566%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:16 Duration: 2s219ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/3761%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:16 Duration: 2s89ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/37566%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:14 Duration: 2s61ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
7 48 989.95 MiB 12.91 MiB 45.02 MiB 20.62 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3563%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:34 Duration: 2s16ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3761%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:29 Duration: 2s9ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:33 Duration: 1s982ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
8 29 1.32 GiB 46.51 MiB 46.51 MiB 46.51 MiB select * from c_order_post (?);-
SELECT * FROM C_ORDER_POST ('760666D2A4C047D4A7AF713465DB4EEA');
Date: 2026-07-14 16:42:10 Duration: 7s942ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM C_ORDER_POST ('A908D916EE8D4E8A877ABA3EBB45D982');
Date: 2026-07-14 10:15:27 Duration: 7s512ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM C_ORDER_POST ('A428B69D944A4984854B2A2A82CBB6DE');
Date: 2026-07-14 08:54:07 Duration: 7s512ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
9 21 976.66 MiB 46.51 MiB 46.51 MiB 46.51 MiB select * from m_inout_post0 (?);-
SELECT * FROM M_InOut_Post0 ('D7EE42389589497EB93981AF0199804D');
Date: 2026-07-14 07:47:33 Duration: 10s359ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM M_InOut_Post0 ('78B9744E307A4A52A67FBD8E5D1A8459');
Date: 2026-07-14 15:58:44 Duration: 7s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM M_InOut_Post0 ('A9776F2A97D849509778B0BAAFA5A234');
Date: 2026-07-14 08:16:51 Duration: 7s272ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
10 16 329.98 MiB 12.91 MiB 45.02 MiB 20.62 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') 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/3566%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' 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-14 15:35:59 Duration: 2s20ms 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84') 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 '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' 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-14 15:35:58 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
11 16 329.98 MiB 12.91 MiB 45.02 MiB 20.62 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') 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/3554%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' 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-14 15:35:33 Duration: 2s1ms 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB') 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 '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' 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-14 15:35:32 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
12 16 329.98 MiB 12.91 MiB 45.02 MiB 20.62 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 array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) is not null 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') escape '|' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') is not null order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:11 Duration: 2s212ms 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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 array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') is not null order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:10 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
13 16 329.98 MiB 12.91 MiB 45.02 MiB 20.62 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F', '0F841BB4FDCB4C3289D8CCFDD9E9FF65') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%0F841BB4FDCB4C3289D8CCFDD9E9FF65%') 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/3564%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0F841BB4FDCB4C3289D8CCFDD9E9FF65%' 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-14 15:36:50 Duration: 2s56ms 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F', '0F841BB4FDCB4C3289D8CCFDD9E9FF65') 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 '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%0F841BB4FDCB4C3289D8CCFDD9E9FF65%' 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-14 15:36:49 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
14 16 329.67 MiB 12.91 MiB 45.02 MiB 20.60 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 = '7CE53108243C4401B6AD735D4D06414F') 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-14 15:34:08 Duration: 1s882ms 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-14 15:34:08 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
15 15 203.78 MiB 11.27 MiB 22.72 MiB 13.59 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-14 07:00:04 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
16 7 79.59 MiB 11.27 MiB 11.62 MiB 11.37 MiB select * from ( select ;-
SELECT * FROM ( select ;
Date: 2026-07-14 12:00:04 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
17 5 56.42 MiB 11.27 MiB 11.36 MiB 11.28 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-14 09:00:04 Duration: 3s203ms 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-14 11:00:03 Duration: 1s907ms 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-14 16:00:02 Duration: 1s64ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
18 3 824.58 MiB 274.86 MiB 274.86 MiB 274.86 MiB select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by pr_numeros0_.movementdate, pr_numeros0_.pr_numeroserie_id limit ?;-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:45 Duration: 1s680ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:27:09 Duration: 1s587ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:57 Duration: 1s541ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
19 2 124.69 MiB 31.17 MiB 93.52 MiB 62.34 MiB select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join c_bpartner businesspa1_ on pr_numeros0_.c_bpartner_id = businesspa1_.c_bpartner_id where (upper(pr_numeros0_.description) like upper(?) escape ?) and (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by businesspa1_.value, businesspa1_.name, pr_numeros0_.pr_numeroserie_id limit ?;-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/25%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:31 Duration: 5s316ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/2%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:26 Duration: 3s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/2%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:28 Duration: 1s798ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 274.86 MiB select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ($1, $2, $3, $4, $5)) and (pr_numeros0_.AD_Client_ID in ($6, $7)) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit $8;[ Date: 2026-07-14 09:26:45 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 274.86 MiB select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ($1, $2, $3, $4, $5)) and (pr_numeros0_.AD_Client_ID in ($6, $7)) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit $8;[ Date: 2026-07-14 09:26:57 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 274.86 MiB select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ($1, $2, $3, $4, $5)) and (pr_numeros0_.AD_Client_ID in ($6, $7)) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit $8;[ Date: 2026-07-14 09:27:09 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 93.52 MiB select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper($1) escape '|') and (pr_numeros0_.AD_Org_ID in ($2, $3, $4, $5, $6)) and (pr_numeros0_.AD_Client_ID in ($7, $8)) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit $9;[ Date: 2026-07-14 16:42:53 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-14 07:47:33 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-14 07:52:54 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-14 07:55:37 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-14 07:59:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-14 08:08:25 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-14 08:13:57 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-14 08:16:51 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-14 08:54:07 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-14 08:56:10 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-14 09:13:59 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 46.51 MiB SELECT * FROM C_Order_Post ($1);[ Date: 2026-07-14 09:15:09 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-14 09:15:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-14 09:52:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-14 10:15:26 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 46.51 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-14 10:36:32 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 46.51 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-14 10:49:47 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 7.00 sec Highest CPU-cost vacuum
Table public.c_invoice
Database etendo - 2026-07-14 18:05:09 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 7.00 sec Highest CPU-cost vacuum
Table public.c_invoice
Database etendo - 2026-07-14 18:05:09 Date
Analyzes per table
Key values
- public.ad_ep_instance_para (36) Main table analyzed (database etendo)
- 189 analyzes Total
Table Number of analyzes etendo.public.ad_ep_instance_para 36 etendo.public.ad_session 22 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.last_stat_tables_srv1 15 etendo.profile.tables_list 11 etendo.profile.last_stat_io 8 etendo.profile.stmt_list 7 etendo.profile.indexes_list 6 etendo.public.ad_preference 5 etendo.profile.last_extension_versions 5 etendo.profile.funcs_list 5 etendo.profile.last_stat_activity_count_srv1 4 etendo.public.ad_process_request 3 etendo.profile.last_stat_slru 2 etendo.public.ad_sequence 2 etendo.public.c_invoice 2 etendo.profile.sample_stat_indexes_total 1 etendo.profile.sample_stat_user_functions 1 etendo.profile.sample_stat_tables_total 1 etendo.profile.sample_stat_tables 1 etendo.public.ad_pinstance 1 etendo.profile.sample_statements 1 etendo.profile.sample_stat_indexes 1 etendo.profile.sample_stat_slru 1 etendo.profile.sample_stat_io 1 etendo.profile.sample_stat_database 1 etendo.public.fin_financial_account 1 Total 189 Vacuums per table
Key values
- public.ad_ep_instance_para (21) Main table vacuumed on database etendo
- 119 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 21 21 1,259 0 101 0 0 147 40 333,380 0 0 etendo.profile.last_stat_statements_srv1 16 15 13,665 0 219 0 0 8,938 218 1,392,791 0 0 etendo.profile.last_stat_user_functions_srv1 16 15 2,879 0 65 0 0 1,632 50 345,897 0 0 etendo.profile.last_stat_indexes_srv1 16 15 21,462 0 369 0 0 14,970 375 2,315,983 0 0 etendo.profile.last_stat_tables_srv1 16 15 16,436 0 231 0 0 11,627 237 1,614,668 0 0 etendo.profile.tables_list 7 7 1,156 0 14 0 0 658 10 126,536 2 20 etendo.profile.last_stat_io 4 4 293 0 18 0 0 30 9 67,263 0 0 etendo.profile.indexes_list 4 4 507 0 25 0 0 130 13 113,103 0 0 etendo.profile.funcs_list 4 4 351 0 24 0 0 94 12 97,161 0 0 etendo.profile.stmt_list 4 4 1,103 0 43 0 0 732 33 268,171 8 18 etendo.profile.last_stat_activity_count_srv1 2 0 43 0 10 0 0 12 4 32,768 0 0 etendo.profile.last_extension_versions 2 2 101 0 10 0 0 10 4 33,452 0 0 etendo.pg_toast.pg_toast_201017 2 2 261 0 55 0 0 110 22 70,976 7 20 etendo.profile.last_stat_database_srv1 1 1 50 0 6 0 0 6 3 21,351 0 0 etendo.pg_toast.pg_toast_2619 1 1 913 0 212 0 0 442 135 335,826 41 83 etendo.public.c_invoice 1 1 67,349 0 28,764 0 0 34,114 3,462 7,007,436 14 21 etendo.profile.sample_stat_indexes 1 1 340 0 201 0 0 225 22 88,010 0 0 etendo.profile.last_stat_slru 1 1 55 0 5 0 0 5 2 16,431 0 0 Total 119 113 128,223 5,601 30,372 0 0 73,882 4,651 14,281,203 72 162 Vacuum throughput per table
Key values
- public.c_invoice (7) 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_statements_srv1 0 0 0.11 etendo.profile.last_stat_user_functions_srv1 0 0 0 etendo.profile.last_stat_indexes_srv1 0 0 0.3 etendo.profile.last_stat_tables_srv1 0 0 0.15 etendo.profile.tables_list 0 0 0 etendo.profile.last_stat_io 0 0 0 etendo.profile.indexes_list 0 0 0 etendo.profile.funcs_list 0 0 0 etendo.profile.stmt_list 0 0 0 etendo.profile.last_stat_activity_count_srv1 0 0 0 etendo.profile.last_extension_versions 0 0 0 etendo.pg_toast.pg_toast_201017 0 0 0 etendo.profile.last_stat_database_srv1 0 0 0 etendo.pg_toast.pg_toast_2619 0 0 0.06 etendo.public.c_invoice 0 0 7 etendo.profile.sample_stat_indexes 0 0 0.05 etendo.profile.last_stat_slru 0 0 0 Total 0 0 7.67 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (94106) Main table with removed tuples on database etendo
- 193493 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.profile.last_stat_indexes_srv1 16 15 94,106 55,941 6,277 630 5,482 etendo.profile.last_stat_tables_srv1 16 15 58,114 33,243 3,883 481 4,286 etendo.profile.last_stat_statements_srv1 16 15 28,603 28,369 908 419 2,945 etendo.profile.last_stat_user_functions_srv1 16 15 7,962 8,079 533 5 519 etendo.profile.tables_list 7 7 1,355 6,543 0 0 210 etendo.public.c_invoice 1 1 942 204,639 0 0 28,389 etendo.profile.sample_stat_indexes 1 1 555 10,732 56 0 181 etendo.public.ad_ep_instance_para 21 21 474 0 0 21 0 etendo.profile.stmt_list 4 4 350 3,020 0 0 274 etendo.pg_toast.pg_toast_2619 1 1 310 1,789 0 0 630 etendo.profile.indexes_list 4 4 193 1,429 52 0 40 etendo.profile.last_stat_io 4 4 147 64 0 0 8 etendo.profile.last_extension_versions 2 2 108 18 0 0 2 etendo.profile.funcs_list 4 4 107 686 0 0 28 etendo.pg_toast.pg_toast_201017 2 2 65 281 0 0 78 etendo.profile.last_stat_slru 1 1 50 10 5 0 1 etendo.profile.last_stat_activity_count_srv1 2 0 48 0 0 2 0 etendo.profile.last_stat_database_srv1 1 1 4 4 0 0 1 Total 119 113 193,493 354,847 11,714 1,558 43,074 Pages removed per table
Key values
- profile.last_stat_indexes_srv1 (630) Main table with removed pages on database etendo
- 1558 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed etendo.profile.last_stat_indexes_srv1 16 15 94106 630 etendo.profile.last_stat_tables_srv1 16 15 58114 481 etendo.profile.last_stat_statements_srv1 16 15 28603 419 etendo.public.ad_ep_instance_para 21 21 474 21 etendo.profile.last_stat_user_functions_srv1 16 15 7962 5 etendo.profile.last_stat_activity_count_srv1 2 0 48 2 etendo.profile.last_stat_io 4 4 147 0 etendo.profile.indexes_list 4 4 193 0 etendo.profile.funcs_list 4 4 107 0 etendo.profile.last_extension_versions 2 2 108 0 etendo.profile.last_stat_database_srv1 1 1 4 0 etendo.profile.stmt_list 4 4 350 0 etendo.pg_toast.pg_toast_201017 2 2 65 0 etendo.pg_toast.pg_toast_2619 1 1 310 0 etendo.profile.tables_list 7 7 1355 0 etendo.public.c_invoice 1 1 942 0 etendo.profile.sample_stat_indexes 1 1 555 0 etendo.profile.last_stat_slru 1 1 50 0 Total 119 113 193,493 1,558 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 14 07 6 10 08 10 14 09 8 13 10 6 12 11 12 22 12 8 13 13 8 13 14 5 12 15 8 13 16 14 14 17 10 19 18 8 9 19 6 7 20 4 7 21 6 11 - 7.00 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 279 Total read queries
- 13 Total write queries
Queries by database
Key values
- etendo Main database
- 292 Requests
- 34m34s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 290 Requests
User Request type Count Duration postgres Total 2 2s86ms select 2 2s86ms tad Total 290 34m32s delete 13 21s631ms select 277 34m10s Duration by user
Key values
- 34m32s (tad) Main time consuming user
User Request type Count Duration postgres Total 2 2s86ms select 2 2s86ms tad Total 290 34m32s delete 13 21s631ms select 277 34m10s Queries by host
Key values
- 127.0.0.1 Main host
- 290 Requests
- 34m32s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 290 Requests
- 34m32s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-14 15:36:32 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 263 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 54s394ms 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', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');[ Date: 2026-07-14 16:03:09 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 54s147ms 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 ('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', 'B127D2C201914D83957980826A78C82C', 'AFB50D4E088C4FC2AD6C32945FE9FECF', '93637137CC3948A3B193C690B5CC5D8D', '856F5B487C8648F58E83575EB13770F2', '7FA2EEEC4C26405A8A58AA6A8C8A792E', '7CF147638FA5487BB3765E007252D8E8', '663F53DFEAE34DDCA2E80F641BEAE3BA', '63A32197912B4B71BF77B4EEF946B34D', '3F8B6D6F571041E3B3864C62A3E1AA58', '3AE19431A52440B3955BB7C2C58F1AB2', '012C07AC05CE42EB8D1002C4A1E8F7F3', 'E960B83A91454C4F9C4087C950B704F1', 'B4E1D66E2E5341F48D9FA65420AEDE98', 'A7A7EBF4540A4BE79A75116FE22D4042', '99BE82D25CA94D8A996459AD9BAEF5FB');[ Date: 2026-07-14 16:03:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 53s951ms 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', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');[ Date: 2026-07-14 16:03:04 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 52s331ms 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 ('FF6447329B1447FDAAA2AB2752D97208', '83BB29E7E7E74DC4A03501CEB4529285', 'E93A50089A854CAC91E7F5BB5184C789', 'E172D7AC85754862A45DA794E06A7674', '4E19576B656F4F13B7C3BC264E77CF63', '865EA05416C6412882BD7A834E48C24E', '022E37A3D8884E46A1F8C99817D58A7A', '189E18A85193409DA9AB21B078C9D994', '5F68635D2A0F4B32A7AA3E2E63AC1E99', '4775DAB4E16046A596343DB74DFE551F', '0F922FACC39B4D8F9ACEFD2C597117C5', '9D0F78B7AD414B4EB01479BC004930E7', '1DE15C0762BE4FD69B5A43760E77737E', 'EDFD15C6DB5F43789BB9BE1E2ECE9E61', '743F5C648A584ABDB60C28500405D3D1', '63E804AE53A6471C8A2A44F6D665832E', '46205F5551B045ECB19109C6B847E1EB', '37F6ECB73010413EA47D8E57A1C515A1', 'F6D698D39C6142DAA62163BB3E604DE6', 'FC4EEBB3A712446EA15DA60732CB730C', '9592129F6E434246BF41F04DDE09FBC1', 'DC6A5FAEF200451A88D938FDE818B787', 'F5D709318C1540F4904EC8DD0B698EC1', '5ECA728F595C4872B7CB8F1845FF2CC1', '5C39152B55C54936A3F89A2811D93D61', '3FB036C1C95342F0B4CFA7C7A89E6532', '5037EC6C659C477BA655F183D844D891', 'E7B97409090746FBA3CEA0481F92F9BC', 'CE68C90E929E49BABA153DA523C4284D', '385AFE429BDB4DC3B9CEE461F91FF182', '36D1591D1E924693B24B395AC86701CE', '8C88DC860C274A70A36873B6EE5C2B36', '32B09F6135BB4433B0B364E1C640EFB7', 'F89915877B504439B9B156CBE98AD536', '429D6C9429A740A2A7FD849000B4012D', 'EE279625B4894C2E98D2DDEE2F65DF4C', 'B131C2148EB24480BCC538FB35E6FED8', 'CC3596D502B146D3B1F377276ED40231', '1CF8372D90044846B871B8DAFDB6AA66', '3C240F74526A4A29A77097DCFAB376D3', 'C7A4E2823AC5457EB3512DC05ABD6717', 'B50F59386BED4660BBFFC75B042471EB', 'A1495C7AA8A741EF83529EDF70752C6D', '66251E67CEA742A68DB9E3367E8A1E83', 'FF8C275DB1434985AD54B12ECD37B880', '53B09D2CDB2C4536B07CEACA1BDED930', '368AC993B41B431F9B79126777F03AB0', '9D4923A9891C47119348621943F16B75', '86930A5639A24A18BE3A3BA3005D0D79', '02E9CA1EA0334A3DAB26A60B774DB8D5');[ Date: 2026-07-14 16:03:03 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
5 51s995ms 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 ('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', 'B127D2C201914D83957980826A78C82C', 'AFB50D4E088C4FC2AD6C32945FE9FECF', '93637137CC3948A3B193C690B5CC5D8D', '856F5B487C8648F58E83575EB13770F2', '7FA2EEEC4C26405A8A58AA6A8C8A792E', '7CF147638FA5487BB3765E007252D8E8', '663F53DFEAE34DDCA2E80F641BEAE3BA', '63A32197912B4B71BF77B4EEF946B34D', '3F8B6D6F571041E3B3864C62A3E1AA58', '3AE19431A52440B3955BB7C2C58F1AB2', '012C07AC05CE42EB8D1002C4A1E8F7F3', 'E960B83A91454C4F9C4087C950B704F1', 'B4E1D66E2E5341F48D9FA65420AEDE98', 'A7A7EBF4540A4BE79A75116FE22D4042', '99BE82D25CA94D8A996459AD9BAEF5FB');[ Date: 2026-07-14 16:00:09 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 51s896ms 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 ('D1BBB239C3BA4FCE80C09CA8F3AC90DC', 'CBCA234DA9B74D84B2165C1AD8183CBD', 'B203A5E9D8784D56807F6C07C968B979', 'AF9059E7C4F14AB0877DF403E828905D', '9D60729BADAE4DFEBB393723AA46A9B8', '907395AA40CD4274AECE7E26691CF41E', '2F08189EB11D4B95B70C015C9DD6077C', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', '8577819CD29C40C1A59308306AF3C689', '20101CF85949484FB7BCFB2AE3C88768', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '9D2FC4CF3D2D4DDC8DF9765E7605691D', '63A32197912B4B71BF77B4EEF946B34D', '1008095BD92E4B8DB34473FEE5016D28', 'AECBF75476BD40B2AC3EC56CD97F8CA0', 'D2410710DE3347D5B92601793A8FAEF9', 'D09A8A82FBB543F3A09826BA68EC71B7', '1F9CAC0DF2A34234AABA0DEB5CA8B8A1', 'B38E57DC5ED745879E9B5DEB9A6B4D79', '8E2109762FEA466D8C789618826A5271', '4B0B13AF4BF44FF2B2FAC737A1D88CFB', '4720BEB693DB4A54838A2E7A979C6513', '2E1C4C1CF9854E4DB0C796A6F7B5C77B', '4A6A46FCC7994A4DB404DFEFF810C169', '10EA0F995FCC45CC8851599FE8AC2E1A', 'FB91D872258A4A8BAA148B0C5E07E259', 'D759C50627064EA18D1918EFCC22DE2E', '8D58C7781E78431C807F8AEF6A394261', '6770442A0F6F4E83B467CE84E9D2B6B9', 'E66EBA8734D94BD485D9431FEE736A3A', 'F8C3BE00B80E4107A8334ED48B906103', '1D870037B76440B6B11CD5BAE6AF9A8F', '276E345EC9114AD386996E237806F436', '53476E9202344750A17B65E0D7B5C507', '98CD786335B14EED9989AE41BDE30AF2', '8117EE401ED148DD9F0EDC96683BF486', 'E6D34646F0B648E18B83D48D2B80469F', 'F88A9DEEF6134A1097DAE830DE93D46D', 'C5030A142C6F40799D6E86514D9F4140', 'F55936E68F2B483399FF78BD96B5BFC8', '8AA7984053D14BC6905AE63ADC78601C', '9A496CB6DEF24CE4A83D6298AE7C21B3', '945190F37ED446429A6A95913E39B50D', '3D6CD81DD33140F18C23EB552CB46E0A', '2112A0BB62004A48A967CD5E48DD20FE', '06EACD640160475FBC8079DE0DAF02A4', 'B482A628F9794306AFA5013E9FC0F4A9', '3002A1CFB4AA4B49AE6404C033589E42', '5FEB973579DE44889E19D4F1C0F8FA9A');[ Date: 2026-07-14 16:02:59 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 51s465ms 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', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');[ Date: 2026-07-14 15:59:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 51s199ms 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', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53', 'B5776043334E4F0B95A45E7E9ADB6CB3', 'B4DEB76EB3DE440AA03884C3AD5BC3A7', 'A613569C616B4400A67CF0D2E98E25B8', '9DE3E845BFFC4A90A3DB21B8ECA3AF83', '9CBAA873B64242F48DEE11BD7BDAB6A1', '7B96CE62188341F8A9F65807E5BDE3CD', '7AC5E7AF6F744819B5866D21F11E5D98');[ Date: 2026-07-14 08:34:38 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
9 51s160ms 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 ('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', 'CEA9CD52250B4B29B846C042C96F2922', 'C73F04E916A542A6A7C6BC804ECAA073', 'A727D6966444476BA22F8B1311B551A3');[ Date: 2026-07-14 08:34:40 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 51s138ms 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-14 16:00:12 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
11 51s78ms 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-14 15:59:21 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 50s867ms 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', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');[ Date: 2026-07-14 16:02:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 50s772ms 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 ('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', 'B127D2C201914D83957980826A78C82C', 'AFB50D4E088C4FC2AD6C32945FE9FECF', '93637137CC3948A3B193C690B5CC5D8D', '856F5B487C8648F58E83575EB13770F2', '7FA2EEEC4C26405A8A58AA6A8C8A792E', '7CF147638FA5487BB3765E007252D8E8', '663F53DFEAE34DDCA2E80F641BEAE3BA', '63A32197912B4B71BF77B4EEF946B34D', '3F8B6D6F571041E3B3864C62A3E1AA58', '3AE19431A52440B3955BB7C2C58F1AB2', '012C07AC05CE42EB8D1002C4A1E8F7F3', 'E960B83A91454C4F9C4087C950B704F1', 'B4E1D66E2E5341F48D9FA65420AEDE98', 'A7A7EBF4540A4BE79A75116FE22D4042', '99BE82D25CA94D8A996459AD9BAEF5FB', '9555F1FC62C84689AFFD08B798BB993C', '8BBBD22751584F0C85DE477E18C88F96', '7AB88202C53B4028A20C8035B708EB12', '757510D0B13D489986B710EBB5F5E34C', '6C5F8A3717C44C5984D86206C44C94A8', '5D0DBB0CC8354344A44A0618AF28BF67', '4B3927A73DEC408BB7C109CDFE537F68');[ Date: 2026-07-14 08:35:28 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 50s444ms 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 ('FF6447329B1447FDAAA2AB2752D97208', '83BB29E7E7E74DC4A03501CEB4529285', 'E93A50089A854CAC91E7F5BB5184C789', 'E172D7AC85754862A45DA794E06A7674', '4E19576B656F4F13B7C3BC264E77CF63', '865EA05416C6412882BD7A834E48C24E', '022E37A3D8884E46A1F8C99817D58A7A', '189E18A85193409DA9AB21B078C9D994', '5F68635D2A0F4B32A7AA3E2E63AC1E99', '4775DAB4E16046A596343DB74DFE551F', '0F922FACC39B4D8F9ACEFD2C597117C5', '9D0F78B7AD414B4EB01479BC004930E7', '1DE15C0762BE4FD69B5A43760E77737E', 'EDFD15C6DB5F43789BB9BE1E2ECE9E61', '743F5C648A584ABDB60C28500405D3D1', '63E804AE53A6471C8A2A44F6D665832E', '46205F5551B045ECB19109C6B847E1EB', '37F6ECB73010413EA47D8E57A1C515A1', 'F6D698D39C6142DAA62163BB3E604DE6', 'FC4EEBB3A712446EA15DA60732CB730C', '9592129F6E434246BF41F04DDE09FBC1', 'DC6A5FAEF200451A88D938FDE818B787', 'F5D709318C1540F4904EC8DD0B698EC1', '5ECA728F595C4872B7CB8F1845FF2CC1', '5C39152B55C54936A3F89A2811D93D61', '3FB036C1C95342F0B4CFA7C7A89E6532', '5037EC6C659C477BA655F183D844D891', 'E7B97409090746FBA3CEA0481F92F9BC', 'CE68C90E929E49BABA153DA523C4284D', '385AFE429BDB4DC3B9CEE461F91FF182', '36D1591D1E924693B24B395AC86701CE', '8C88DC860C274A70A36873B6EE5C2B36', '32B09F6135BB4433B0B364E1C640EFB7', 'F89915877B504439B9B156CBE98AD536', '429D6C9429A740A2A7FD849000B4012D', 'EE279625B4894C2E98D2DDEE2F65DF4C', 'B131C2148EB24480BCC538FB35E6FED8', 'CC3596D502B146D3B1F377276ED40231', '1CF8372D90044846B871B8DAFDB6AA66', '3C240F74526A4A29A77097DCFAB376D3', 'C7A4E2823AC5457EB3512DC05ABD6717', 'B50F59386BED4660BBFFC75B042471EB', 'A1495C7AA8A741EF83529EDF70752C6D', '66251E67CEA742A68DB9E3367E8A1E83', 'FF8C275DB1434985AD54B12ECD37B880', '53B09D2CDB2C4536B07CEACA1BDED930', '368AC993B41B431F9B79126777F03AB0', '9D4923A9891C47119348621943F16B75', '86930A5639A24A18BE3A3BA3005D0D79', '02E9CA1EA0334A3DAB26A60B774DB8D5');[ Date: 2026-07-14 16:00:03 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 50s306ms 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', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');[ Date: 2026-07-14 16:00:36 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 50s272ms 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 ('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', '15A1554125FE4DBCA63773068294ACE4', 'E86B6BC7157248DEA3176E1B9A5C61F5', 'B226326AD06F47D8A32EE29FE654D9C7');[ Date: 2026-07-14 08:35:31 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 50s222ms 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 ('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', 'B127D2C201914D83957980826A78C82C', 'AFB50D4E088C4FC2AD6C32945FE9FECF', '93637137CC3948A3B193C690B5CC5D8D', '856F5B487C8648F58E83575EB13770F2', '7FA2EEEC4C26405A8A58AA6A8C8A792E', '7CF147638FA5487BB3765E007252D8E8', '663F53DFEAE34DDCA2E80F641BEAE3BA', '63A32197912B4B71BF77B4EEF946B34D', '3F8B6D6F571041E3B3864C62A3E1AA58', '3AE19431A52440B3955BB7C2C58F1AB2', '012C07AC05CE42EB8D1002C4A1E8F7F3', 'E960B83A91454C4F9C4087C950B704F1', 'B4E1D66E2E5341F48D9FA65420AEDE98', 'A7A7EBF4540A4BE79A75116FE22D4042', '99BE82D25CA94D8A996459AD9BAEF5FB');[ Date: 2026-07-14 16:03:54 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 50s158ms 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 ('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', 'B127D2C201914D83957980826A78C82C', 'AFB50D4E088C4FC2AD6C32945FE9FECF', '93637137CC3948A3B193C690B5CC5D8D', '856F5B487C8648F58E83575EB13770F2', '7FA2EEEC4C26405A8A58AA6A8C8A792E', '7CF147638FA5487BB3765E007252D8E8', '663F53DFEAE34DDCA2E80F641BEAE3BA', '63A32197912B4B71BF77B4EEF946B34D', '3F8B6D6F571041E3B3864C62A3E1AA58', '3AE19431A52440B3955BB7C2C58F1AB2', '012C07AC05CE42EB8D1002C4A1E8F7F3', 'E960B83A91454C4F9C4087C950B704F1', 'B4E1D66E2E5341F48D9FA65420AEDE98', 'A7A7EBF4540A4BE79A75116FE22D4042', '99BE82D25CA94D8A996459AD9BAEF5FB');[ Date: 2026-07-14 16:03:59 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 49s450ms 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 ('FF6447329B1447FDAAA2AB2752D97208', '83BB29E7E7E74DC4A03501CEB4529285', 'E93A50089A854CAC91E7F5BB5184C789', 'E172D7AC85754862A45DA794E06A7674', '4E19576B656F4F13B7C3BC264E77CF63', '865EA05416C6412882BD7A834E48C24E', '022E37A3D8884E46A1F8C99817D58A7A', '189E18A85193409DA9AB21B078C9D994', '5F68635D2A0F4B32A7AA3E2E63AC1E99', '4775DAB4E16046A596343DB74DFE551F', '0F922FACC39B4D8F9ACEFD2C597117C5', '9D0F78B7AD414B4EB01479BC004930E7', '1DE15C0762BE4FD69B5A43760E77737E', 'EDFD15C6DB5F43789BB9BE1E2ECE9E61', '743F5C648A584ABDB60C28500405D3D1', '63E804AE53A6471C8A2A44F6D665832E', '46205F5551B045ECB19109C6B847E1EB', '37F6ECB73010413EA47D8E57A1C515A1', 'F6D698D39C6142DAA62163BB3E604DE6', 'FC4EEBB3A712446EA15DA60732CB730C', '9592129F6E434246BF41F04DDE09FBC1', 'DC6A5FAEF200451A88D938FDE818B787', 'F5D709318C1540F4904EC8DD0B698EC1', '5ECA728F595C4872B7CB8F1845FF2CC1', '5C39152B55C54936A3F89A2811D93D61', '3FB036C1C95342F0B4CFA7C7A89E6532', '5037EC6C659C477BA655F183D844D891', 'E7B97409090746FBA3CEA0481F92F9BC', 'CE68C90E929E49BABA153DA523C4284D', '385AFE429BDB4DC3B9CEE461F91FF182', '36D1591D1E924693B24B395AC86701CE', '8C88DC860C274A70A36873B6EE5C2B36', '32B09F6135BB4433B0B364E1C640EFB7', 'F89915877B504439B9B156CBE98AD536', '429D6C9429A740A2A7FD849000B4012D', 'EE279625B4894C2E98D2DDEE2F65DF4C', 'B131C2148EB24480BCC538FB35E6FED8', 'CC3596D502B146D3B1F377276ED40231', '1CF8372D90044846B871B8DAFDB6AA66', '3C240F74526A4A29A77097DCFAB376D3', 'C7A4E2823AC5457EB3512DC05ABD6717', 'B50F59386BED4660BBFFC75B042471EB', 'A1495C7AA8A741EF83529EDF70752C6D', '66251E67CEA742A68DB9E3367E8A1E83', 'FF8C275DB1434985AD54B12ECD37B880', '53B09D2CDB2C4536B07CEACA1BDED930', '368AC993B41B431F9B79126777F03AB0', '9D4923A9891C47119348621943F16B75', '86930A5639A24A18BE3A3BA3005D0D79', '02E9CA1EA0334A3DAB26A60B774DB8D5');[ Date: 2026-07-14 16:03:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 49s420ms 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 ('D1BBB239C3BA4FCE80C09CA8F3AC90DC', 'CBCA234DA9B74D84B2165C1AD8183CBD', 'B203A5E9D8784D56807F6C07C968B979', 'AF9059E7C4F14AB0877DF403E828905D', '9D60729BADAE4DFEBB393723AA46A9B8', '907395AA40CD4274AECE7E26691CF41E', '2F08189EB11D4B95B70C015C9DD6077C', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', '8577819CD29C40C1A59308306AF3C689', '20101CF85949484FB7BCFB2AE3C88768', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '9D2FC4CF3D2D4DDC8DF9765E7605691D', '63A32197912B4B71BF77B4EEF946B34D', '1008095BD92E4B8DB34473FEE5016D28', 'AECBF75476BD40B2AC3EC56CD97F8CA0', 'D2410710DE3347D5B92601793A8FAEF9', 'D09A8A82FBB543F3A09826BA68EC71B7', '1F9CAC0DF2A34234AABA0DEB5CA8B8A1', 'B38E57DC5ED745879E9B5DEB9A6B4D79', '8E2109762FEA466D8C789618826A5271', '4B0B13AF4BF44FF2B2FAC737A1D88CFB', '4720BEB693DB4A54838A2E7A979C6513', '2E1C4C1CF9854E4DB0C796A6F7B5C77B', '4A6A46FCC7994A4DB404DFEFF810C169', '10EA0F995FCC45CC8851599FE8AC2E1A', 'FB91D872258A4A8BAA148B0C5E07E259', 'D759C50627064EA18D1918EFCC22DE2E', '8D58C7781E78431C807F8AEF6A394261', '6770442A0F6F4E83B467CE84E9D2B6B9', 'E66EBA8734D94BD485D9431FEE736A3A', 'F8C3BE00B80E4107A8334ED48B906103', '1D870037B76440B6B11CD5BAE6AF9A8F', '276E345EC9114AD386996E237806F436', '53476E9202344750A17B65E0D7B5C507', '98CD786335B14EED9989AE41BDE30AF2', '8117EE401ED148DD9F0EDC96683BF486', 'E6D34646F0B648E18B83D48D2B80469F', 'F88A9DEEF6134A1097DAE830DE93D46D', 'C5030A142C6F40799D6E86514D9F4140', 'F55936E68F2B483399FF78BD96B5BFC8', '8AA7984053D14BC6905AE63ADC78601C', '9A496CB6DEF24CE4A83D6298AE7C21B3', '945190F37ED446429A6A95913E39B50D', '3D6CD81DD33140F18C23EB552CB46E0A', '2112A0BB62004A48A967CD5E48DD20FE', '06EACD640160475FBC8079DE0DAF02A4', 'B482A628F9794306AFA5013E9FC0F4A9', '3002A1CFB4AA4B49AE6404C033589E42', '5FEB973579DE44889E19D4F1C0F8FA9A');[ Date: 2026-07-14 15:59:13 - 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 23m33s 31 1s914ms 54s394ms 45s586ms 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 14 08 8 5m4s 38s83ms 09 2 1m33s 46s560ms 15 6 4m9s 41s628ms 16 15 12m45s 51s42ms [ User: tad - Total duration: 23m33s - Times executed: 31 ]
[ Application: openbravo - Total duration: 23m33s - Times executed: 31 ]
-
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', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');
Date: 2026-07-14 16:03:09 Duration: 54s394ms 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 ('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', 'B127D2C201914D83957980826A78C82C', 'AFB50D4E088C4FC2AD6C32945FE9FECF', '93637137CC3948A3B193C690B5CC5D8D', '856F5B487C8648F58E83575EB13770F2', '7FA2EEEC4C26405A8A58AA6A8C8A792E', '7CF147638FA5487BB3765E007252D8E8', '663F53DFEAE34DDCA2E80F641BEAE3BA', '63A32197912B4B71BF77B4EEF946B34D', '3F8B6D6F571041E3B3864C62A3E1AA58', '3AE19431A52440B3955BB7C2C58F1AB2', '012C07AC05CE42EB8D1002C4A1E8F7F3', 'E960B83A91454C4F9C4087C950B704F1', 'B4E1D66E2E5341F48D9FA65420AEDE98', 'A7A7EBF4540A4BE79A75116FE22D4042', '99BE82D25CA94D8A996459AD9BAEF5FB');
Date: 2026-07-14 16:03:18 Duration: 54s147ms 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 ('DA6D5109E0794236A336DF4E401DDF51', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');
Date: 2026-07-14 16:03:04 Duration: 53s951ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 3m28s 29 6s890ms 7s942ms 7s178ms select * from c_order_post (?);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 14 08 3 21s603ms 7s201ms 09 3 21s972ms 7s324ms 10 4 29s232ms 7s308ms 11 9 1m3s 7s8ms 12 4 28s769ms 7s192ms 16 2 15s110ms 7s555ms 17 4 28s394ms 7s98ms [ User: tad - Total duration: 3m28s - Times executed: 29 ]
[ Application: openbravo - Total duration: 3m28s - Times executed: 29 ]
-
SELECT * FROM C_ORDER_POST ('760666D2A4C047D4A7AF713465DB4EEA');
Date: 2026-07-14 16:42:10 Duration: 7s942ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('A908D916EE8D4E8A877ABA3EBB45D982');
Date: 2026-07-14 10:15:27 Duration: 7s512ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('A428B69D944A4984854B2A2A82CBB6DE');
Date: 2026-07-14 08:54:07 Duration: 7s512ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 2m29s 21 6s770ms 10s359ms 7s132ms select * from m_inout_post0 (?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 14 07 4 31s24ms 7s756ms 08 2 14s364ms 7s182ms 09 1 6s843ms 6s843ms 10 1 7s26ms 7s26ms 11 2 13s697ms 6s848ms 12 1 6s983ms 6s983ms 13 3 20s784ms 6s928ms 15 2 14s529ms 7s264ms 16 3 20s832ms 6s944ms 17 2 13s692ms 6s846ms [ User: tad - Total duration: 2m29s - Times executed: 21 ]
[ Application: openbravo - Total duration: 2m29s - Times executed: 21 ]
-
SELECT * FROM M_InOut_Post0 ('D7EE42389589497EB93981AF0199804D');
Date: 2026-07-14 07:47:33 Duration: 10s359ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('78B9744E307A4A52A67FBD8E5D1A8459');
Date: 2026-07-14 15:58:44 Duration: 7s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('A9776F2A97D849509778B0BAAFA5A234');
Date: 2026-07-14 08:16:51 Duration: 7s272ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 1m37s 71 1s84ms 2s217ms 1s373ms select coalesce(sum(amtacctdr), ?) as amtacctdr, coalesce(sum(amtacctcr), ?) as amtacctcr 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, null as groupby, ? as bpid, ? as bpname, ? as pdid, ? as pdname, ? as pjid, ? as pjname, factaccttype 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 null 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 null 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(value || ? || 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.ad_org_id in (...) and ? = ? and ? = ?) d where ? = ? and id = ? 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 < ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 14 08 71 1m37s 1s373ms [ User: tad - Total duration: 1m37s - Times executed: 71 ]
[ Application: openbravo - Total duration: 1m37s - Times executed: 71 ]
-
SELECT COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR 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, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype 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 NULL 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 NULL 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 WHERE ('N' = '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 = '1D75F51604B64EB5B078FAAEB12D2B9C') and value <= ( select value from c_elementvalue where c_elementvalue_id = 'E521524B347742CF9CD7C076CEF3F153') 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 = 'FF80818133B7413E0133B719A08E2FEF' AND FACT_ACCT.DATEACCT < TO_DATE('16-11-2025') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 AND ID = '1D75F51604B64EB5B078FAAEB12D2B9C' 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 < '246099522652F453F3384C509C8735ABEF3D6AA158437055852E4AA08E4EBD68ACF7D5FE';
Date: 2026-07-14 08:12:05 Duration: 2s217ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR 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, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype 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 NULL 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 NULL 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 WHERE ('N' = '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 = '1D75F51604B64EB5B078FAAEB12D2B9C') and value <= ( select value from c_elementvalue where c_elementvalue_id = 'E521524B347742CF9CD7C076CEF3F153') 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 = 'FF80818133B7413E0133B719A08E2FEF' AND FACT_ACCT.DATEACCT < TO_DATE('01-04-2025') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 AND ID = '1D75F51604B64EB5B078FAAEB12D2B9C' 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 < '2460766235DADB58FD3A4195A2E6D177DE1441CB206372B4C4A046659BDAF7C8DE4A3ADC';
Date: 2026-07-14 08:08:57 Duration: 2s197ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR 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, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype 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 NULL 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 NULL 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 WHERE ('N' = '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 = '1D75F51604B64EB5B078FAAEB12D2B9C') and value <= ( select value from c_elementvalue where c_elementvalue_id = 'E521524B347742CF9CD7C076CEF3F153') 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 = 'FF80818133B7413E0133B719A08E2FEF' AND FACT_ACCT.DATEACCT < TO_DATE('13-06-2025') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 AND ID = '1D75F51604B64EB5B078FAAEB12D2B9C' 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 < '24608392BF0E7A40FB6D40D2BB0AC1660D92FBBDBD7FEC99729641879380324FA1EF5537';
Date: 2026-07-14 08:10:08 Duration: 2s140ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 36s514ms 35 1s 1s547ms 1s43ms 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 #5
Day Hour Count Duration Avg duration Jul 14 08 5 5s597ms 1s119ms 09 7 7s110ms 1s15ms 10 6 6s253ms 1s42ms 11 6 6s132ms 1s22ms 12 4 4s60ms 1s15ms 16 7 7s359ms 1s51ms [ User: tad - Total duration: 36s514ms - Times executed: 35 ]
[ Application: openbravo - Total duration: 36s514ms - Times executed: 35 ]
-
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 = 'C88F465EDEA34CA39868816F4B96B901';
Date: 2026-07-14 08:32:14 Duration: 1s547ms 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 = 'A8CE9D1782EB4920B20E8B62846096EA';
Date: 2026-07-14 16:00:05 Duration: 1s150ms 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 = '2F08189EB11D4B95B70C015C9DD6077C';
Date: 2026-07-14 16:20:03 Duration: 1s105ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 28s741ms 23 1s132ms 1s356ms 1s249ms 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 #6
Day Hour Count Duration Avg duration Jul 14 09 8 10s17ms 1s252ms 10 10 12s439ms 1s243ms 15 4 5s45ms 1s261ms 16 1 1s238ms 1s238ms [ User: tad - Total duration: 28s741ms - Times executed: 23 ]
[ Application: openbravo - Total duration: 28s741ms - Times executed: 23 ]
-
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('%OLI%MOTOR%%') or upper(product1_.Value) like upper('%OLI%MOTOR%%') or upper(product1_.Name) like upper('%OLI%MOTOR%%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-14 15:54:47 Duration: 1s356ms 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('%BG2491105%') or upper(product1_.Value) like upper('%BG2491105%') or upper(product1_.Name) like upper('%BG2491105%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-14 09:51:28 Duration: 1s327ms 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('%OLI%HONDA%1L%') or upper(product1_.Value) like upper('%OLI%HONDA%1L%') or upper(product1_.Name) like upper('%OLI%HONDA%1L%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-14 15:55:03 Duration: 1s316ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 21s631ms 13 1s140ms 3s555ms 1s663ms delete from m_product where m_product_id = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 14 10 2 2s628ms 1s314ms 13 2 3s461ms 1s730ms 15 9 15s540ms 1s726ms [ User: tad - Total duration: 21s631ms - Times executed: 13 ]
[ Application: openbravo - Total duration: 21s631ms - Times executed: 13 ]
-
delete from M_Product where M_Product_ID = '432660D9190F420B91F31350F39B4EBA';
Date: 2026-07-14 15:01:53 Duration: 3s555ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = 'F70C1A0C845947A69CE23C7067ECC802';
Date: 2026-07-14 15:26:46 Duration: 2s457ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = 'B88E4B520E1A4AA59F0906C27D7960BF';
Date: 2026-07-14 13:18:04 Duration: 2s321ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 18s660ms 9 1s967ms 2s174ms 2s73ms 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 ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 14 15 9 18s660ms 2s73ms [ User: tad - Total duration: 18s660ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 18s660ms - Times executed: 9 ]
-
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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') 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%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:18 Duration: 2s174ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') 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/3760550%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' 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-14 15:34:51 Duration: 2s173ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') 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('%C2%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:17 Duration: 2s88ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 17s478ms 15 1s99ms 1s235ms 1s165ms 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 #9
Day Hour Count Duration Avg duration Jul 14 07 1 1s181ms 1s181ms 08 1 1s99ms 1s99ms 09 1 1s233ms 1s233ms 10 1 1s135ms 1s135ms 11 1 1s217ms 1s217ms 12 1 1s194ms 1s194ms 13 1 1s131ms 1s131ms 14 1 1s141ms 1s141ms 15 1 1s169ms 1s169ms 16 1 1s235ms 1s235ms 17 1 1s126ms 1s126ms 18 1 1s116ms 1s116ms 19 1 1s196ms 1s196ms 20 1 1s107ms 1s107ms 21 1 1s192ms 1s192ms [ User: tad - Total duration: 17s478ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 17s478ms - 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-14 16:00:01 Duration: 1s235ms 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-14 09:00:01 Duration: 1s233ms 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-14 11:00:01 Duration: 1s217ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 11s241ms 5 2s168ms 2s397ms 2s248ms select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.description) like upper(?) escape ?) and (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by pr_numeros0_.movementdate, pr_numeros0_.pr_numeroserie_id limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 14 09 5 11s241ms 2s248ms [ User: tad - Total duration: 11s241ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 11s241ms - Times executed: 5 ]
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.Description) like upper('%842098%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:27:02 Duration: 2s397ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.Description) like upper('%842098679%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:27:03 Duration: 2s237ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.Description) like upper('%842098691%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:53 Duration: 2s224ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 10s796ms 5 1s968ms 2s311ms 2s159ms 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 ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 14 15 5 10s796ms 2s159ms [ User: tad - Total duration: 10s796ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 10s796ms - 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 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/3553760%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:18 Duration: 2s311ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/3553%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:19 Duration: 2s277ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/355760%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:17 Duration: 2s173ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 10s321ms 3 1s798ms 5s316ms 3s440ms select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join c_bpartner businesspa1_ on pr_numeros0_.c_bpartner_id = businesspa1_.c_bpartner_id where (upper(pr_numeros0_.description) like upper(?) escape ?) and (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by businesspa1_.value, businesspa1_.name, pr_numeros0_.pr_numeroserie_id limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 14 16 3 10s321ms 3s440ms [ User: tad - Total duration: 10s321ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 10s321ms - Times executed: 3 ]
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/25%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:31 Duration: 5s316ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/2%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:26 Duration: 3s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/2%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:28 Duration: 1s798ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 9s203ms 6 1s1ms 3s203ms 1s533ms 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 14 09 1 3s203ms 3s203ms 10 1 1s10ms 1s10ms 11 1 1s907ms 1s907ms 14 1 1s1ms 1s1ms 16 1 1s64ms 1s64ms 21 1 1s15ms 1s15ms [ User: tad - Total duration: 9s203ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 9s203ms - Times executed: 6 ]
-
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-14 09:00:04 Duration: 3s203ms 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-14 11:00:03 Duration: 1s907ms 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-14 16:00:02 Duration: 1s64ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 8s390ms 4 2s20ms 2s219ms 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 #14
Day Hour Count Duration Avg duration Jul 14 15 4 8s390ms 2s97ms [ User: tad - Total duration: 8s390ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s390ms - Times executed: 4 ]
-
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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/3761566%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:16 Duration: 2s219ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/3761%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:16 Duration: 2s89ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/37566%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:14 Duration: 2s61ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 6s9ms 3 1s982ms 2s16ms 2s3ms 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 #15
Day Hour Count Duration Avg duration Jul 14 15 3 6s9ms 2s3ms [ User: tad - Total duration: 6s9ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s9ms - 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3563%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:34 Duration: 2s16ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3761%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:29 Duration: 2s9ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:33 Duration: 1s982ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 4s810ms 3 1s541ms 1s680ms 1s603ms select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by pr_numeros0_.movementdate, pr_numeros0_.pr_numeroserie_id limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 14 09 3 4s810ms 1s603ms [ User: tad - Total duration: 4s810ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s810ms - Times executed: 3 ]
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:45 Duration: 1s680ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:27:09 Duration: 1s587ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:57 Duration: 1s541ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 4s139ms 4 1s22ms 1s50ms 1s34ms 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 #17
Day Hour Count Duration Avg duration Jul 14 07 1 1s38ms 1s38ms 08 1 1s27ms 1s27ms 09 1 1s22ms 1s22ms 16 1 1s50ms 1s50ms [ User: tad - Total duration: 4s139ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 4s139ms - Times executed: 4 ]
-
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-14 16:00:01 Duration: 1s50ms 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-14 07:00:01 Duration: 1s38ms 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-14 08:00:01 Duration: 1s27ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 3s317ms 3 1s67ms 1s147ms 1s105ms 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 #18
Day Hour Count Duration Avg duration Jul 14 09 1 1s147ms 1s147ms 10 1 1s67ms 1s67ms 17 1 1s102ms 1s102ms [ User: tad - Total duration: 3s317ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s317ms - Times executed: 3 ]
-
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('%RAGA%') 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-14 09:43:11 Duration: 1s147ms 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('%MAG%') 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-14 17:42:45 Duration: 1s102ms 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('%sole%g%') 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-14 10:49:14 Duration: 1s67ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 2s212ms 1 2s212ms 2s212ms 2s212ms 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 array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) is not null 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 ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 14 15 1 2s212ms 2s212ms [ User: tad - Total duration: 2s212ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s212ms - Times executed: 1 ]
-
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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') escape '|' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') is not null order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:11 Duration: 2s212ms 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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 array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') is not null order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:10 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
20 2s86ms 2 1s30ms 1s55ms 1s43ms select profile.take_sample ();Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 14 09 1 1s30ms 1s30ms 16 1 1s55ms 1s55ms [ User: postgres - Total duration: 2s86ms - Times executed: 2 ]
[ Application: psql - Total duration: 2s86ms - Times executed: 2 ]
-
SELECT profile.take_sample ();
Date: 2026-07-14 16:00:02 Duration: 1s55ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 09:00:02 Duration: 1s30ms Database: etendo User: postgres Remote: [local] Application: psql
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 71 1m37s 1s84ms 2s217ms 1s373ms select coalesce(sum(amtacctdr), ?) as amtacctdr, coalesce(sum(amtacctcr), ?) as amtacctcr 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, null as groupby, ? as bpid, ? as bpname, ? as pdid, ? as pdname, ? as pjid, ? as pjname, factaccttype 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 null 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 null 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(value || ? || 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.ad_org_id in (...) and ? = ? and ? = ?) d where ? = ? and id = ? 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 < ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 14 08 71 1m37s 1s373ms [ User: tad - Total duration: 1m37s - Times executed: 71 ]
[ Application: openbravo - Total duration: 1m37s - Times executed: 71 ]
-
SELECT COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR 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, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype 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 NULL 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 NULL 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 WHERE ('N' = '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 = '1D75F51604B64EB5B078FAAEB12D2B9C') and value <= ( select value from c_elementvalue where c_elementvalue_id = 'E521524B347742CF9CD7C076CEF3F153') 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 = 'FF80818133B7413E0133B719A08E2FEF' AND FACT_ACCT.DATEACCT < TO_DATE('16-11-2025') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 AND ID = '1D75F51604B64EB5B078FAAEB12D2B9C' 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 < '246099522652F453F3384C509C8735ABEF3D6AA158437055852E4AA08E4EBD68ACF7D5FE';
Date: 2026-07-14 08:12:05 Duration: 2s217ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR 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, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype 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 NULL 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 NULL 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 WHERE ('N' = '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 = '1D75F51604B64EB5B078FAAEB12D2B9C') and value <= ( select value from c_elementvalue where c_elementvalue_id = 'E521524B347742CF9CD7C076CEF3F153') 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 = 'FF80818133B7413E0133B719A08E2FEF' AND FACT_ACCT.DATEACCT < TO_DATE('01-04-2025') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 AND ID = '1D75F51604B64EB5B078FAAEB12D2B9C' 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 < '2460766235DADB58FD3A4195A2E6D177DE1441CB206372B4C4A046659BDAF7C8DE4A3ADC';
Date: 2026-07-14 08:08:57 Duration: 2s197ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR 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, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype 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 NULL 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 NULL 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 WHERE ('N' = '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 = '1D75F51604B64EB5B078FAAEB12D2B9C') and value <= ( select value from c_elementvalue where c_elementvalue_id = 'E521524B347742CF9CD7C076CEF3F153') 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 = 'FF80818133B7413E0133B719A08E2FEF' AND FACT_ACCT.DATEACCT < TO_DATE('13-06-2025') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 AND ID = '1D75F51604B64EB5B078FAAEB12D2B9C' 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 < '24608392BF0E7A40FB6D40D2BB0AC1660D92FBBDBD7FEC99729641879380324FA1EF5537';
Date: 2026-07-14 08:10:08 Duration: 2s140ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 35 36s514ms 1s 1s547ms 1s43ms 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 #2
Day Hour Count Duration Avg duration Jul 14 08 5 5s597ms 1s119ms 09 7 7s110ms 1s15ms 10 6 6s253ms 1s42ms 11 6 6s132ms 1s22ms 12 4 4s60ms 1s15ms 16 7 7s359ms 1s51ms [ User: tad - Total duration: 36s514ms - Times executed: 35 ]
[ Application: openbravo - Total duration: 36s514ms - Times executed: 35 ]
-
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 = 'C88F465EDEA34CA39868816F4B96B901';
Date: 2026-07-14 08:32:14 Duration: 1s547ms 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 = 'A8CE9D1782EB4920B20E8B62846096EA';
Date: 2026-07-14 16:00:05 Duration: 1s150ms 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 = '2F08189EB11D4B95B70C015C9DD6077C';
Date: 2026-07-14 16:20:03 Duration: 1s105ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 31 23m33s 1s914ms 54s394ms 45s586ms 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 #3
Day Hour Count Duration Avg duration Jul 14 08 8 5m4s 38s83ms 09 2 1m33s 46s560ms 15 6 4m9s 41s628ms 16 15 12m45s 51s42ms [ User: tad - Total duration: 23m33s - Times executed: 31 ]
[ Application: openbravo - Total duration: 23m33s - Times executed: 31 ]
-
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', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');
Date: 2026-07-14 16:03:09 Duration: 54s394ms 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 ('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', 'B127D2C201914D83957980826A78C82C', 'AFB50D4E088C4FC2AD6C32945FE9FECF', '93637137CC3948A3B193C690B5CC5D8D', '856F5B487C8648F58E83575EB13770F2', '7FA2EEEC4C26405A8A58AA6A8C8A792E', '7CF147638FA5487BB3765E007252D8E8', '663F53DFEAE34DDCA2E80F641BEAE3BA', '63A32197912B4B71BF77B4EEF946B34D', '3F8B6D6F571041E3B3864C62A3E1AA58', '3AE19431A52440B3955BB7C2C58F1AB2', '012C07AC05CE42EB8D1002C4A1E8F7F3', 'E960B83A91454C4F9C4087C950B704F1', 'B4E1D66E2E5341F48D9FA65420AEDE98', 'A7A7EBF4540A4BE79A75116FE22D4042', '99BE82D25CA94D8A996459AD9BAEF5FB');
Date: 2026-07-14 16:03:18 Duration: 54s147ms 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 ('DA6D5109E0794236A336DF4E401DDF51', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');
Date: 2026-07-14 16:03:04 Duration: 53s951ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 29 3m28s 6s890ms 7s942ms 7s178ms select * from c_order_post (?);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 14 08 3 21s603ms 7s201ms 09 3 21s972ms 7s324ms 10 4 29s232ms 7s308ms 11 9 1m3s 7s8ms 12 4 28s769ms 7s192ms 16 2 15s110ms 7s555ms 17 4 28s394ms 7s98ms [ User: tad - Total duration: 3m28s - Times executed: 29 ]
[ Application: openbravo - Total duration: 3m28s - Times executed: 29 ]
-
SELECT * FROM C_ORDER_POST ('760666D2A4C047D4A7AF713465DB4EEA');
Date: 2026-07-14 16:42:10 Duration: 7s942ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('A908D916EE8D4E8A877ABA3EBB45D982');
Date: 2026-07-14 10:15:27 Duration: 7s512ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('A428B69D944A4984854B2A2A82CBB6DE');
Date: 2026-07-14 08:54:07 Duration: 7s512ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 23 28s741ms 1s132ms 1s356ms 1s249ms 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 #5
Day Hour Count Duration Avg duration Jul 14 09 8 10s17ms 1s252ms 10 10 12s439ms 1s243ms 15 4 5s45ms 1s261ms 16 1 1s238ms 1s238ms [ User: tad - Total duration: 28s741ms - Times executed: 23 ]
[ Application: openbravo - Total duration: 28s741ms - Times executed: 23 ]
-
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('%OLI%MOTOR%%') or upper(product1_.Value) like upper('%OLI%MOTOR%%') or upper(product1_.Name) like upper('%OLI%MOTOR%%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-14 15:54:47 Duration: 1s356ms 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('%BG2491105%') or upper(product1_.Value) like upper('%BG2491105%') or upper(product1_.Name) like upper('%BG2491105%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-14 09:51:28 Duration: 1s327ms 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('%OLI%HONDA%1L%') or upper(product1_.Value) like upper('%OLI%HONDA%1L%') or upper(product1_.Name) like upper('%OLI%HONDA%1L%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-14 15:55:03 Duration: 1s316ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 21 2m29s 6s770ms 10s359ms 7s132ms select * from m_inout_post0 (?);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 14 07 4 31s24ms 7s756ms 08 2 14s364ms 7s182ms 09 1 6s843ms 6s843ms 10 1 7s26ms 7s26ms 11 2 13s697ms 6s848ms 12 1 6s983ms 6s983ms 13 3 20s784ms 6s928ms 15 2 14s529ms 7s264ms 16 3 20s832ms 6s944ms 17 2 13s692ms 6s846ms [ User: tad - Total duration: 2m29s - Times executed: 21 ]
[ Application: openbravo - Total duration: 2m29s - Times executed: 21 ]
-
SELECT * FROM M_InOut_Post0 ('D7EE42389589497EB93981AF0199804D');
Date: 2026-07-14 07:47:33 Duration: 10s359ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('78B9744E307A4A52A67FBD8E5D1A8459');
Date: 2026-07-14 15:58:44 Duration: 7s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('A9776F2A97D849509778B0BAAFA5A234');
Date: 2026-07-14 08:16:51 Duration: 7s272ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 15 17s478ms 1s99ms 1s235ms 1s165ms 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 #7
Day Hour Count Duration Avg duration Jul 14 07 1 1s181ms 1s181ms 08 1 1s99ms 1s99ms 09 1 1s233ms 1s233ms 10 1 1s135ms 1s135ms 11 1 1s217ms 1s217ms 12 1 1s194ms 1s194ms 13 1 1s131ms 1s131ms 14 1 1s141ms 1s141ms 15 1 1s169ms 1s169ms 16 1 1s235ms 1s235ms 17 1 1s126ms 1s126ms 18 1 1s116ms 1s116ms 19 1 1s196ms 1s196ms 20 1 1s107ms 1s107ms 21 1 1s192ms 1s192ms [ User: tad - Total duration: 17s478ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 17s478ms - 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-14 16:00:01 Duration: 1s235ms 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-14 09:00:01 Duration: 1s233ms 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-14 11:00:01 Duration: 1s217ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 13 21s631ms 1s140ms 3s555ms 1s663ms delete from m_product where m_product_id = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 14 10 2 2s628ms 1s314ms 13 2 3s461ms 1s730ms 15 9 15s540ms 1s726ms [ User: tad - Total duration: 21s631ms - Times executed: 13 ]
[ Application: openbravo - Total duration: 21s631ms - Times executed: 13 ]
-
delete from M_Product where M_Product_ID = '432660D9190F420B91F31350F39B4EBA';
Date: 2026-07-14 15:01:53 Duration: 3s555ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = 'F70C1A0C845947A69CE23C7067ECC802';
Date: 2026-07-14 15:26:46 Duration: 2s457ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = 'B88E4B520E1A4AA59F0906C27D7960BF';
Date: 2026-07-14 13:18:04 Duration: 2s321ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 9 18s660ms 1s967ms 2s174ms 2s73ms 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 ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 14 15 9 18s660ms 2s73ms [ User: tad - Total duration: 18s660ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 18s660ms - Times executed: 9 ]
-
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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') 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%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:18 Duration: 2s174ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') 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/3760550%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' 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-14 15:34:51 Duration: 2s173ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') 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('%C2%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:17 Duration: 2s88ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 6 9s203ms 1s1ms 3s203ms 1s533ms 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 #10
Day Hour Count Duration Avg duration Jul 14 09 1 3s203ms 3s203ms 10 1 1s10ms 1s10ms 11 1 1s907ms 1s907ms 14 1 1s1ms 1s1ms 16 1 1s64ms 1s64ms 21 1 1s15ms 1s15ms [ User: tad - Total duration: 9s203ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 9s203ms - Times executed: 6 ]
-
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-14 09:00:04 Duration: 3s203ms 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-14 11:00:03 Duration: 1s907ms 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-14 16:00:02 Duration: 1s64ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 5 11s241ms 2s168ms 2s397ms 2s248ms select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.description) like upper(?) escape ?) and (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by pr_numeros0_.movementdate, pr_numeros0_.pr_numeroserie_id limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 14 09 5 11s241ms 2s248ms [ User: tad - Total duration: 11s241ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 11s241ms - Times executed: 5 ]
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.Description) like upper('%842098%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:27:02 Duration: 2s397ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.Description) like upper('%842098679%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:27:03 Duration: 2s237ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.Description) like upper('%842098691%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:53 Duration: 2s224ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 5 10s796ms 1s968ms 2s311ms 2s159ms 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 ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 14 15 5 10s796ms 2s159ms [ User: tad - Total duration: 10s796ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 10s796ms - 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 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/3553760%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:18 Duration: 2s311ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/3553%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:19 Duration: 2s277ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/355760%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:17 Duration: 2s173ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 4 8s390ms 2s20ms 2s219ms 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 #13
Day Hour Count Duration Avg duration Jul 14 15 4 8s390ms 2s97ms [ User: tad - Total duration: 8s390ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s390ms - Times executed: 4 ]
-
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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/3761566%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:16 Duration: 2s219ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/3761%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:16 Duration: 2s89ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/37566%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:14 Duration: 2s61ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 4 4s139ms 1s22ms 1s50ms 1s34ms 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 #14
Day Hour Count Duration Avg duration Jul 14 07 1 1s38ms 1s38ms 08 1 1s27ms 1s27ms 09 1 1s22ms 1s22ms 16 1 1s50ms 1s50ms [ User: tad - Total duration: 4s139ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 4s139ms - Times executed: 4 ]
-
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-14 16:00:01 Duration: 1s50ms 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-14 07:00:01 Duration: 1s38ms 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-14 08:00:01 Duration: 1s27ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 3 10s321ms 1s798ms 5s316ms 3s440ms select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join c_bpartner businesspa1_ on pr_numeros0_.c_bpartner_id = businesspa1_.c_bpartner_id where (upper(pr_numeros0_.description) like upper(?) escape ?) and (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by businesspa1_.value, businesspa1_.name, pr_numeros0_.pr_numeroserie_id limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 14 16 3 10s321ms 3s440ms [ User: tad - Total duration: 10s321ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 10s321ms - Times executed: 3 ]
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/25%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:31 Duration: 5s316ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/2%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:26 Duration: 3s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/2%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:28 Duration: 1s798ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 3 6s9ms 1s982ms 2s16ms 2s3ms 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 #16
Day Hour Count Duration Avg duration Jul 14 15 3 6s9ms 2s3ms [ User: tad - Total duration: 6s9ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s9ms - 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3563%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:34 Duration: 2s16ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3761%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:29 Duration: 2s9ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:33 Duration: 1s982ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 3 4s810ms 1s541ms 1s680ms 1s603ms select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by pr_numeros0_.movementdate, pr_numeros0_.pr_numeroserie_id limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 14 09 3 4s810ms 1s603ms [ User: tad - Total duration: 4s810ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s810ms - Times executed: 3 ]
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:45 Duration: 1s680ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:27:09 Duration: 1s587ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:57 Duration: 1s541ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 3 3s317ms 1s67ms 1s147ms 1s105ms 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 #18
Day Hour Count Duration Avg duration Jul 14 09 1 1s147ms 1s147ms 10 1 1s67ms 1s67ms 17 1 1s102ms 1s102ms [ User: tad - Total duration: 3s317ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s317ms - Times executed: 3 ]
-
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('%RAGA%') 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-14 09:43:11 Duration: 1s147ms 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('%MAG%') 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-14 17:42:45 Duration: 1s102ms 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('%sole%g%') 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-14 10:49:14 Duration: 1s67ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 2 2s86ms 1s30ms 1s55ms 1s43ms select profile.take_sample ();Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 14 09 1 1s30ms 1s30ms 16 1 1s55ms 1s55ms [ User: postgres - Total duration: 2s86ms - Times executed: 2 ]
[ Application: psql - Total duration: 2s86ms - Times executed: 2 ]
-
SELECT profile.take_sample ();
Date: 2026-07-14 16:00:02 Duration: 1s55ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 09:00:02 Duration: 1s30ms Database: etendo User: postgres Remote: [local] Application: psql
20 1 2s212ms 2s212ms 2s212ms 2s212ms 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 array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) is not null 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 ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 14 15 1 2s212ms 2s212ms [ User: tad - Total duration: 2s212ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s212ms - Times executed: 1 ]
-
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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') escape '|' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') is not null order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:11 Duration: 2s212ms 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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 array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') is not null order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:10 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 1s914ms 54s394ms 45s586ms 31 23m33s 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 14 08 8 5m4s 38s83ms 09 2 1m33s 46s560ms 15 6 4m9s 41s628ms 16 15 12m45s 51s42ms [ User: tad - Total duration: 23m33s - Times executed: 31 ]
[ Application: openbravo - Total duration: 23m33s - Times executed: 31 ]
-
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', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');
Date: 2026-07-14 16:03:09 Duration: 54s394ms 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 ('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', 'B127D2C201914D83957980826A78C82C', 'AFB50D4E088C4FC2AD6C32945FE9FECF', '93637137CC3948A3B193C690B5CC5D8D', '856F5B487C8648F58E83575EB13770F2', '7FA2EEEC4C26405A8A58AA6A8C8A792E', '7CF147638FA5487BB3765E007252D8E8', '663F53DFEAE34DDCA2E80F641BEAE3BA', '63A32197912B4B71BF77B4EEF946B34D', '3F8B6D6F571041E3B3864C62A3E1AA58', '3AE19431A52440B3955BB7C2C58F1AB2', '012C07AC05CE42EB8D1002C4A1E8F7F3', 'E960B83A91454C4F9C4087C950B704F1', 'B4E1D66E2E5341F48D9FA65420AEDE98', 'A7A7EBF4540A4BE79A75116FE22D4042', '99BE82D25CA94D8A996459AD9BAEF5FB');
Date: 2026-07-14 16:03:18 Duration: 54s147ms 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 ('DA6D5109E0794236A336DF4E401DDF51', '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', 'AEF1C3FCAF094D5F942C80E36690146D', '9C0E76DFFBDE45EBA29593B5EFAD52B5', '9B346B691297488E9962D0EC97A6CDB0', '880CE6172F6B48EA9F796E272E126120', '78B7473F77A84DD7A019891D46AB9004', '5C1C8F2C981D4C9BAE7419CD0A5C94C4', '5279BE3A457A4C78941D40E83F9A614C', '444493353F944B54B46CABE5105A8385', '4334DAD2E4834930A087E1D2C413310D', '340559052E2C4EE0BEDEB94D9100AFC1', '07920CA1DF2E4692823C50BA3116F922', '051E8F6455E94FF3B4CB64A83D6D876E', 'F7B1713212A04ED894689CA1528F6415', 'E5AF9004D37D4CA1A45FA90E52E6D6B6', 'E081848A3FAC4E1DB6638C9B2257ED53');
Date: 2026-07-14 16:03:04 Duration: 53s951ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 6s890ms 7s942ms 7s178ms 29 3m28s select * from c_order_post (?);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 14 08 3 21s603ms 7s201ms 09 3 21s972ms 7s324ms 10 4 29s232ms 7s308ms 11 9 1m3s 7s8ms 12 4 28s769ms 7s192ms 16 2 15s110ms 7s555ms 17 4 28s394ms 7s98ms [ User: tad - Total duration: 3m28s - Times executed: 29 ]
[ Application: openbravo - Total duration: 3m28s - Times executed: 29 ]
-
SELECT * FROM C_ORDER_POST ('760666D2A4C047D4A7AF713465DB4EEA');
Date: 2026-07-14 16:42:10 Duration: 7s942ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('A908D916EE8D4E8A877ABA3EBB45D982');
Date: 2026-07-14 10:15:27 Duration: 7s512ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('A428B69D944A4984854B2A2A82CBB6DE');
Date: 2026-07-14 08:54:07 Duration: 7s512ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 6s770ms 10s359ms 7s132ms 21 2m29s select * from m_inout_post0 (?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 14 07 4 31s24ms 7s756ms 08 2 14s364ms 7s182ms 09 1 6s843ms 6s843ms 10 1 7s26ms 7s26ms 11 2 13s697ms 6s848ms 12 1 6s983ms 6s983ms 13 3 20s784ms 6s928ms 15 2 14s529ms 7s264ms 16 3 20s832ms 6s944ms 17 2 13s692ms 6s846ms [ User: tad - Total duration: 2m29s - Times executed: 21 ]
[ Application: openbravo - Total duration: 2m29s - Times executed: 21 ]
-
SELECT * FROM M_InOut_Post0 ('D7EE42389589497EB93981AF0199804D');
Date: 2026-07-14 07:47:33 Duration: 10s359ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('78B9744E307A4A52A67FBD8E5D1A8459');
Date: 2026-07-14 15:58:44 Duration: 7s578ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('A9776F2A97D849509778B0BAAFA5A234');
Date: 2026-07-14 08:16:51 Duration: 7s272ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 1s798ms 5s316ms 3s440ms 3 10s321ms select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join c_bpartner businesspa1_ on pr_numeros0_.c_bpartner_id = businesspa1_.c_bpartner_id where (upper(pr_numeros0_.description) like upper(?) escape ?) and (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by businesspa1_.value, businesspa1_.name, pr_numeros0_.pr_numeroserie_id limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 14 16 3 10s321ms 3s440ms [ User: tad - Total duration: 10s321ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 10s321ms - Times executed: 3 ]
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/25%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:31 Duration: 5s316ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/2%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:26 Duration: 3s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ left outer join C_BPartner businesspa1_ on pr_numeros0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID where (upper(pr_numeros0_.Description) like upper('%HD%10/2%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by businesspa1_.Value, businesspa1_.Name, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 16:43:28 Duration: 1s798ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 2s168ms 2s397ms 2s248ms 5 11s241ms select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.description) like upper(?) escape ?) and (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by pr_numeros0_.movementdate, pr_numeros0_.pr_numeroserie_id limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 14 09 5 11s241ms 2s248ms [ User: tad - Total duration: 11s241ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 11s241ms - Times executed: 5 ]
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.Description) like upper('%842098%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:27:02 Duration: 2s397ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.Description) like upper('%842098679%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:27:03 Duration: 2s237ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (upper(pr_numeros0_.Description) like upper('%842098691%') escape '|') and (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:53 Duration: 2s224ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 2s212ms 2s212ms 2s212ms 1 2s212ms 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 array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) is not null 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 ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 14 15 1 2s212ms 2s212ms [ User: tad - Total duration: 2s212ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s212ms - Times executed: 1 ]
-
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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') escape '|' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') is not null order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:11 Duration: 2s212ms 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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 array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') is not null order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:10 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
7 1s968ms 2s311ms 2s159ms 5 10s796ms 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 ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 14 15 5 10s796ms 2s159ms [ User: tad - Total duration: 10s796ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 10s796ms - 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 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/3553760%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:18 Duration: 2s311ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/3553%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:19 Duration: 2s277ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') 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/355760%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' 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-14 15:35:17 Duration: 2s173ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 2s20ms 2s219ms 2s97ms 4 8s390ms 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 #8
Day Hour Count Duration Avg duration Jul 14 15 4 8s390ms 2s97ms [ User: tad - Total duration: 8s390ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s390ms - Times executed: 4 ]
-
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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/3761566%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:16 Duration: 2s219ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/3761%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:16 Duration: 2s89ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') 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/37566%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' 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-14 15:36:14 Duration: 2s61ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 1s967ms 2s174ms 2s73ms 9 18s660ms 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 ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 14 15 9 18s660ms 2s73ms [ User: tad - Total duration: 18s660ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 18s660ms - Times executed: 9 ]
-
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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') 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%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:18 Duration: 2s174ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') 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/3760550%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' 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-14 15:34:51 Duration: 2s173ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('4E84A0416B8F465EA21F372DD411AEA2') 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('%4E84A0416B8F465EA21F372DD411AEA2%') 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('%C2%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4E84A0416B8F465EA21F372DD411AEA2%' 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-14 15:34:17 Duration: 2s88ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 1s982ms 2s16ms 2s3ms 3 6s9ms 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 #10
Day Hour Count Duration Avg duration Jul 14 15 3 6s9ms 2s3ms [ User: tad - Total duration: 6s9ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s9ms - 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3563%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:34 Duration: 2s16ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3761%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:29 Duration: 2s9ms 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 = '7CE53108243C4401B6AD735D4D06414F') 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 ('501B0A2AC59948E7A94DB0CB3DDAE8CA', '1E631A38F06D46C387AADEEA148B6C39', '6956EB130D5E4167B02013C26B0F14EB', '03D29D2A79B44FACA9328B4CBC0A3D84', 'A2DC8AA7494F488AAE621B7E2AC85DE3', 'B13A73303AD94583855E45887703FC9A', 'B98BC10667EE4AA1AD64C4D47996F77F') 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('%501B0A2AC59948E7A94DB0CB3DDAE8CA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%1E631A38F06D46C387AADEEA148B6C39%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6956EB130D5E4167B02013C26B0F14EB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%03D29D2A79B44FACA9328B4CBC0A3D84%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B13A73303AD94583855E45887703FC9A%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B98BC10667EE4AA1AD64C4D47996F77F%') 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/3%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%501B0A2AC59948E7A94DB0CB3DDAE8CA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%1E631A38F06D46C387AADEEA148B6C39%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6956EB130D5E4167B02013C26B0F14EB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%03D29D2A79B44FACA9328B4CBC0A3D84%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A2DC8AA7494F488AAE621B7E2AC85DE3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B13A73303AD94583855E45887703FC9A%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B98BC10667EE4AA1AD64C4D47996F77F%' 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-14 15:36:33 Duration: 1s982ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 1s140ms 3s555ms 1s663ms 13 21s631ms delete from m_product where m_product_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 14 10 2 2s628ms 1s314ms 13 2 3s461ms 1s730ms 15 9 15s540ms 1s726ms [ User: tad - Total duration: 21s631ms - Times executed: 13 ]
[ Application: openbravo - Total duration: 21s631ms - Times executed: 13 ]
-
delete from M_Product where M_Product_ID = '432660D9190F420B91F31350F39B4EBA';
Date: 2026-07-14 15:01:53 Duration: 3s555ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = 'F70C1A0C845947A69CE23C7067ECC802';
Date: 2026-07-14 15:26:46 Duration: 2s457ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = 'B88E4B520E1A4AA59F0906C27D7960BF';
Date: 2026-07-14 13:18:04 Duration: 2s321ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 1s541ms 1s680ms 1s603ms 3 4s810ms select pr_numeros0_.pr_numeroserie_id as pr_numer1_845_, pr_numeros0_.ad_client_id as ad_clien2_845_, pr_numeros0_.ad_org_id as ad_org_i3_845_, pr_numeros0_.created as created4_845_, pr_numeros0_.createdby as createdb5_845_, pr_numeros0_.updated as updated6_845_, pr_numeros0_.updatedby as updatedb7_845_, pr_numeros0_.isactive as isactive8_845_, pr_numeros0_.c_bpartner_id as c_bpartn9_845_, pr_numeros0_.c_bpartner_location_id as c_bpart10_845_, pr_numeros0_.m_product_id as m_produ11_845_, pr_numeros0_.description as descrip12_845_, pr_numeros0_.qtyordered as qtyorde13_845_, pr_numeros0_.m_inout_id as m_inout14_845_, pr_numeros0_.movementdate as movemen15_845_, pr_numeros0_.dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.ad_org_id in (...)) and (pr_numeros0_.ad_client_id in (...)) order by pr_numeros0_.movementdate, pr_numeros0_.pr_numeroserie_id limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 14 09 3 4s810ms 1s603ms [ User: tad - Total duration: 4s810ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 4s810ms - Times executed: 3 ]
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:45 Duration: 1s680ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:27:09 Duration: 1s587ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pr_numeros0_.PR_Numeroserie_ID as pr_numer1_845_, pr_numeros0_.AD_Client_ID as ad_clien2_845_, pr_numeros0_.AD_Org_ID as ad_org_i3_845_, pr_numeros0_.Created as created4_845_, pr_numeros0_.Createdby as createdb5_845_, pr_numeros0_.Updated as updated6_845_, pr_numeros0_.Updatedby as updatedb7_845_, pr_numeros0_.Isactive as isactive8_845_, pr_numeros0_.C_Bpartner_ID as c_bpartn9_845_, pr_numeros0_.C_Bpartner_Location_ID as c_bpart10_845_, pr_numeros0_.M_Product_ID as m_produ11_845_, pr_numeros0_.Description as descrip12_845_, pr_numeros0_.Qtyordered as qtyorde13_845_, pr_numeros0_.M_Inout_ID as m_inout14_845_, pr_numeros0_.Movementdate as movemen15_845_, pr_numeros0_.Dateordered as dateord16_845_ from pr_numeroserie pr_numeros0_ where (pr_numeros0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B')) and (pr_numeros0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) order by pr_numeros0_.Movementdate, pr_numeros0_.PR_Numeroserie_ID limit '101';
Date: 2026-07-14 09:26:57 Duration: 1s541ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 1s1ms 3s203ms 1s533ms 6 9s203ms 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 14 09 1 3s203ms 3s203ms 10 1 1s10ms 1s10ms 11 1 1s907ms 1s907ms 14 1 1s1ms 1s1ms 16 1 1s64ms 1s64ms 21 1 1s15ms 1s15ms [ User: tad - Total duration: 9s203ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 9s203ms - Times executed: 6 ]
-
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-14 09:00:04 Duration: 3s203ms 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-14 11:00:03 Duration: 1s907ms 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-14 16:00:02 Duration: 1s64ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 1s84ms 2s217ms 1s373ms 71 1m37s select coalesce(sum(amtacctdr), ?) as amtacctdr, coalesce(sum(amtacctcr), ?) as amtacctcr 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, null as groupby, ? as bpid, ? as bpname, ? as pdid, ? as pdname, ? as pjid, ? as pjname, factaccttype 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 null 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 null 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(value || ? || 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.ad_org_id in (...) and ? = ? and ? = ?) d where ? = ? and id = ? 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 < ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 14 08 71 1m37s 1s373ms [ User: tad - Total duration: 1m37s - Times executed: 71 ]
[ Application: openbravo - Total duration: 1m37s - Times executed: 71 ]
-
SELECT COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR 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, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype 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 NULL 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 NULL 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 WHERE ('N' = '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 = '1D75F51604B64EB5B078FAAEB12D2B9C') and value <= ( select value from c_elementvalue where c_elementvalue_id = 'E521524B347742CF9CD7C076CEF3F153') 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 = 'FF80818133B7413E0133B719A08E2FEF' AND FACT_ACCT.DATEACCT < TO_DATE('16-11-2025') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 AND ID = '1D75F51604B64EB5B078FAAEB12D2B9C' 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 < '246099522652F453F3384C509C8735ABEF3D6AA158437055852E4AA08E4EBD68ACF7D5FE';
Date: 2026-07-14 08:12:05 Duration: 2s217ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR 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, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype 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 NULL 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 NULL 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 WHERE ('N' = '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 = '1D75F51604B64EB5B078FAAEB12D2B9C') and value <= ( select value from c_elementvalue where c_elementvalue_id = 'E521524B347742CF9CD7C076CEF3F153') 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 = 'FF80818133B7413E0133B719A08E2FEF' AND FACT_ACCT.DATEACCT < TO_DATE('01-04-2025') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 AND ID = '1D75F51604B64EB5B078FAAEB12D2B9C' 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 < '2460766235DADB58FD3A4195A2E6D177DE1441CB206372B4C4A046659BDAF7C8DE4A3ADC';
Date: 2026-07-14 08:08:57 Duration: 2s197ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR 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, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype 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 NULL 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 NULL 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 WHERE ('N' = '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 = '1D75F51604B64EB5B078FAAEB12D2B9C') and value <= ( select value from c_elementvalue where c_elementvalue_id = 'E521524B347742CF9CD7C076CEF3F153') 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 = 'FF80818133B7413E0133B719A08E2FEF' AND FACT_ACCT.DATEACCT < TO_DATE('13-06-2025') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 AND ID = '1D75F51604B64EB5B078FAAEB12D2B9C' 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 < '24608392BF0E7A40FB6D40D2BB0AC1660D92FBBDBD7FEC99729641879380324FA1EF5537';
Date: 2026-07-14 08:10:08 Duration: 2s140ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 1s132ms 1s356ms 1s249ms 23 28s741ms 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 #15
Day Hour Count Duration Avg duration Jul 14 09 8 10s17ms 1s252ms 10 10 12s439ms 1s243ms 15 4 5s45ms 1s261ms 16 1 1s238ms 1s238ms [ User: tad - Total duration: 28s741ms - Times executed: 23 ]
[ Application: openbravo - Total duration: 28s741ms - Times executed: 23 ]
-
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('%OLI%MOTOR%%') or upper(product1_.Value) like upper('%OLI%MOTOR%%') or upper(product1_.Name) like upper('%OLI%MOTOR%%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-14 15:54:47 Duration: 1s356ms 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('%BG2491105%') or upper(product1_.Value) like upper('%BG2491105%') or upper(product1_.Name) like upper('%BG2491105%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-14 09:51:28 Duration: 1s327ms 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('%OLI%HONDA%1L%') or upper(product1_.Value) like upper('%OLI%HONDA%1L%') or upper(product1_.Name) like upper('%OLI%HONDA%1L%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-14 15:55:03 Duration: 1s316ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 1s99ms 1s235ms 1s165ms 15 17s478ms 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 #16
Day Hour Count Duration Avg duration Jul 14 07 1 1s181ms 1s181ms 08 1 1s99ms 1s99ms 09 1 1s233ms 1s233ms 10 1 1s135ms 1s135ms 11 1 1s217ms 1s217ms 12 1 1s194ms 1s194ms 13 1 1s131ms 1s131ms 14 1 1s141ms 1s141ms 15 1 1s169ms 1s169ms 16 1 1s235ms 1s235ms 17 1 1s126ms 1s126ms 18 1 1s116ms 1s116ms 19 1 1s196ms 1s196ms 20 1 1s107ms 1s107ms 21 1 1s192ms 1s192ms [ User: tad - Total duration: 17s478ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 17s478ms - 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-14 16:00:01 Duration: 1s235ms 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-14 09:00:01 Duration: 1s233ms 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-14 11:00:01 Duration: 1s217ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 1s67ms 1s147ms 1s105ms 3 3s317ms 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 #17
Day Hour Count Duration Avg duration Jul 14 09 1 1s147ms 1s147ms 10 1 1s67ms 1s67ms 17 1 1s102ms 1s102ms [ User: tad - Total duration: 3s317ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s317ms - Times executed: 3 ]
-
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('%RAGA%') 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-14 09:43:11 Duration: 1s147ms 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('%MAG%') 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-14 17:42:45 Duration: 1s102ms 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('%sole%g%') 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-14 10:49:14 Duration: 1s67ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 1s 1s547ms 1s43ms 35 36s514ms 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 #18
Day Hour Count Duration Avg duration Jul 14 08 5 5s597ms 1s119ms 09 7 7s110ms 1s15ms 10 6 6s253ms 1s42ms 11 6 6s132ms 1s22ms 12 4 4s60ms 1s15ms 16 7 7s359ms 1s51ms [ User: tad - Total duration: 36s514ms - Times executed: 35 ]
[ Application: openbravo - Total duration: 36s514ms - Times executed: 35 ]
-
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 = 'C88F465EDEA34CA39868816F4B96B901';
Date: 2026-07-14 08:32:14 Duration: 1s547ms 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 = 'A8CE9D1782EB4920B20E8B62846096EA';
Date: 2026-07-14 16:00:05 Duration: 1s150ms 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 = '2F08189EB11D4B95B70C015C9DD6077C';
Date: 2026-07-14 16:20:03 Duration: 1s105ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 1s30ms 1s55ms 1s43ms 2 2s86ms select profile.take_sample ();Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 14 09 1 1s30ms 1s30ms 16 1 1s55ms 1s55ms [ User: postgres - Total duration: 2s86ms - Times executed: 2 ]
[ Application: psql - Total duration: 2s86ms - Times executed: 2 ]
-
SELECT profile.take_sample ();
Date: 2026-07-14 16:00:02 Duration: 1s55ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 09:00:02 Duration: 1s30ms Database: etendo User: postgres Remote: [local] Application: psql
20 1s22ms 1s50ms 1s34ms 4 4s139ms 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 14 07 1 1s38ms 1s38ms 08 1 1s27ms 1s27ms 09 1 1s22ms 1s22ms 16 1 1s50ms 1s50ms [ User: tad - Total duration: 4s139ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 4s139ms - Times executed: 4 ]
-
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-14 16:00:01 Duration: 1s50ms 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-14 07:00:01 Duration: 1s38ms 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-14 08:00:01 Duration: 1s27ms 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
- 25,115 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
- 210 ERROR entries
- 0 WARNING entries
- 0 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 170 Max number of times the same event was reported
- 210 Total events found
Rank Times reported Error 1 170 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 14 08 30 09 85 10 10 11 15 12 30 - ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: select this_.AD_Sequence_Config_ID as ad_seque1_112_0_, this_.AD_Client_ID as ad_clien2_112_0_, this_.AD_Org_ID as ad_org_i3_112_0_, this_.Isactive as isactive4_112_0_, this_.Created as created5_112_0_, this_.Createdby as createdb6_112_0_, this_.Updated as updated7_112_0_, this_.Updatedby as updatedb8_112_0_, this_.Generator as generato9_112_0_, this_.AD_Reference_ID as ad_refe10_112_0_, this_.DB_Sequence_Name as db_sequ11_112_0_, this_.DB_Sequence_Initial as db_sequ12_112_0_, this_.DB_Sequence_Increment as db_sequ13_112_0_ from ad_sequence_config this_ where this_.AD_Reference_ID=$1 and this_.AD_Org_ID in ($2, $3, $4, $5, $6) and this_.AD_Client_ID in ($7, $8) and this_.Isactive=$9
Date: 2026-07-14 08:59:05 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Statement: select this_.AD_Sequence_Config_ID as ad_seque1_112_0_, this_.AD_Client_ID as ad_clien2_112_0_, this_.AD_Org_ID as ad_org_i3_112_0_, this_.Isactive as isactive4_112_0_, this_.Created as created5_112_0_, this_.Createdby as createdb6_112_0_, this_.Updated as updated7_112_0_, this_.Updatedby as updatedb8_112_0_, this_.Generator as generato9_112_0_, this_.AD_Reference_ID as ad_refe10_112_0_, this_.DB_Sequence_Name as db_sequ11_112_0_, this_.DB_Sequence_Initial as db_sequ12_112_0_, this_.DB_Sequence_Increment as db_sequ13_112_0_ from ad_sequence_config this_ where this_.AD_Reference_ID=$1 and this_.AD_Org_ID in ($2, $3, $4, $5, $6) and this_.AD_Client_ID in ($7, $8) and this_.Isactive=$9
Date: 2026-07-14 08:59:05 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Statement: select this_.AD_Sequence_Config_ID as ad_seque1_112_0_, this_.AD_Client_ID as ad_clien2_112_0_, this_.AD_Org_ID as ad_org_i3_112_0_, this_.Isactive as isactive4_112_0_, this_.Created as created5_112_0_, this_.Createdby as createdb6_112_0_, this_.Updated as updated7_112_0_, this_.Updatedby as updatedb8_112_0_, this_.Generator as generato9_112_0_, this_.AD_Reference_ID as ad_refe10_112_0_, this_.DB_Sequence_Name as db_sequ11_112_0_, this_.DB_Sequence_Initial as db_sequ12_112_0_, this_.DB_Sequence_Increment as db_sequ13_112_0_ from ad_sequence_config this_ where this_.AD_Reference_ID=$1 and this_.AD_Org_ID in ($2, $3, $4, $5, $6) and this_.AD_Client_ID in ($7, $8) and this_.Isactive=$9
Date: 2026-07-14 08:59:05 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
2 34 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 14 08 6 09 17 10 2 11 3 12 6 - ERROR: syntax error at or near ")" at character 162
- ERROR: syntax error at or near ")" at character 162
- ERROR: syntax error at or near ")" at character 162
Statement: SELECT td0.AD_Client_ID AS ID, (COALESCE(TO_CHAR(COALESCE(TO_CHAR(td0.Name),'')),'')) AS NAME, '' AS DESCRIPTION FROM AD_Client td0 WHERE td0.AD_Client_ID IN () AND (td0.isActive = 'Y' OR td0.AD_Client_ID = ($1) ) AND td0.AD_Client_ID=($2) ORDER BY 2
Date: 2026-07-14 08:59:05 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Statement: SELECT td0.AD_Client_ID AS ID, (COALESCE(TO_CHAR(COALESCE(TO_CHAR(td0.Name),'')),'')) AS NAME, '' AS DESCRIPTION FROM AD_Client td0 WHERE td0.AD_Client_ID IN () AND (td0.isActive = 'Y' OR td0.AD_Client_ID = ($1) ) AND td0.AD_Client_ID=($2) ORDER BY 2
Date: 2026-07-14 08:59:17 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Statement: SELECT td0.AD_Client_ID AS ID, (COALESCE(TO_CHAR(COALESCE(TO_CHAR(td0.Name),'')),'')) AS NAME, '' AS DESCRIPTION FROM AD_Client td0 WHERE td0.AD_Client_ID IN () AND (td0.isActive = 'Y' OR td0.AD_Client_ID = ($1) ) AND td0.AD_Client_ID=($2) ORDER BY 2
Date: 2026-07-14 08:59:27 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
3 3 ERROR: @CannotDeletePermanentCost@
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 14 15 3 - ERROR: @CannotDeletePermanentCost@
- ERROR: @CannotDeletePermanentCost@
- ERROR: @CannotDeletePermanentCost@
Context: PL/pgSQL function m_costing_trg() line 41 at RAISE
Statement: delete from M_Costing where M_Costing_ID=$1Date: 2026-07-14 15:27:41 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function m_costing_trg() line 41 at RAISE
Statement: delete from M_Costing where M_Costing_ID=$1Date: 2026-07-14 15:38:30 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function m_costing_trg() line 41 at RAISE
Statement: delete from M_Costing where M_Costing_ID=$1Date: 2026-07-14 15:41:17 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
4 1 ERROR: @20501@
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 14 17 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-14 17:13:18 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
5 1 ERROR: @20201@ 1
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 14 08 1 - ERROR: @20201@ 1
Context: PL/pgSQL function c_orderline_trg() line 80 at RAISE
Statement: delete from C_OrderLine where C_OrderLine_ID=$1Date: 2026-07-14 08:53:01 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
6 1 ERROR: @20400@
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 14 15 1 - ERROR: @20400@
Context: PL/pgSQL function m_product_trg() line 103 at RAISE
Statement: update M_Product set IsActive=$1, Updated=$2, UpdatedBy=$3, Description=$4, IsPurchased=$5, IsSold=$6 where M_Product_ID=$7Date: 2026-07-14 15:38:41 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1