-
Global information
- Generated on Mon Jul 13 23:00:06 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 35,360 log entries in 4s
- Log start from 2026-07-13 07:00:01 to 2026-07-13 21:59:54
-
Overview
Global Stats
- 27 Number of unique normalized queries
- 229 Number of queries
- 14m13s Total query duration
- 2026-07-13 07:00:01 First query
- 2026-07-13 21:00:02 Last query
- 4 queries/s at 2026-07-13 08:23:09 Query peak
- 14m13s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 14m13s Execute total duration
- 78 Number of events
- 8 Number of unique normalized events
- 55 Max number of times the same event was reported
- 0 Number of cancellation
- 132 Total number of automatic vacuums
- 188 Total number of automatic analyzes
- 1,498 Number temporary file
- 523.14 MiB Max size of temporary file
- 15.61 MiB Average size of temporary file
- 3,300 Total number of sessions
- 6 sessions at 2026-07-13 21:01:04 Session peak
- 3d1h46m35s Total duration of sessions
- 1m20s Average duration of sessions
- 0 Average queries per session
- 258ms Average queries duration per session
- 1m20s Average idle time per session
- 3,298 Total number of connections
- 5 connections/s at 2026-07-13 09:00:01 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 4 queries/s Query Peak
- 2026-07-13 08:23:09 Date
SELECT Traffic
Key values
- 4 queries/s Query Peak
- 2026-07-13 08:23:09 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-13 12:36:41 Date
Queries duration
Key values
- 14m13s 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 13 07 4 0ms 18s965ms 5s883ms 0ms 1s190ms 18s965ms 08 95 0ms 10s937ms 2s357ms 10s937ms 30s56ms 57s431ms 09 5 0ms 7s864ms 3s764ms 0ms 2s246ms 8s713ms 10 9 0ms 11s111ms 5s977ms 7s299ms 7s627ms 14s924ms 11 45 0ms 7s796ms 3s260ms 7s776ms 14s833ms 23s167ms 12 24 0ms 2s140ms 1s360ms 2s143ms 3s539ms 9s416ms 13 1 0ms 1s222ms 1s222ms 0ms 0ms 1s222ms 14 1 0ms 1s184ms 1s184ms 0ms 0ms 1s184ms 15 5 0ms 7s814ms 4s930ms 0ms 0ms 22s324ms 16 6 0ms 7s354ms 6s172ms 0ms 7s256ms 14s164ms 17 20 0ms 7s551ms 3s543ms 7s132ms 7s342ms 7s551ms 18 9 0ms 48s679ms 23s709ms 7s303ms 47s831ms 53s497ms 19 2 0ms 1s183ms 1s123ms 0ms 0ms 2s246ms 20 1 0ms 1s151ms 1s151ms 0ms 0ms 1s151ms 21 2 0ms 1s242ms 1s125ms 0ms 0ms 2s251ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 13 07 4 0 5s883ms 0ms 0ms 2s377ms 08 95 0 2s357ms 3s74ms 10s937ms 33s425ms 09 5 0 3s764ms 0ms 0ms 7s864ms 10 9 0 5s977ms 0ms 7s299ms 8s910ms 11 45 0 3s260ms 7s343ms 7s776ms 15s458ms 12 17 0 1s413ms 0ms 1s67ms 4s97ms 13 1 0 1s222ms 0ms 0ms 0ms 14 1 0 1s184ms 0ms 0ms 0ms 15 5 0 4s930ms 0ms 0ms 2s326ms 16 6 0 6s172ms 0ms 0ms 7s354ms 17 20 0 3s543ms 1s35ms 7s132ms 7s494ms 18 9 0 23s709ms 0ms 7s303ms 50s891ms 19 2 0 1s123ms 0ms 0ms 0ms 20 1 0 1s151ms 0ms 0ms 0ms 21 2 0 1s125ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 13 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 7 0 1s232ms 0ms 0ms 1s420ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 13 07 0 3 3.00 0.00% 08 0 95 95.00 0.00% 09 0 5 5.00 0.00% 10 0 9 9.00 0.00% 11 0 45 45.00 0.00% 12 0 24 24.00 0.00% 13 0 1 1.00 0.00% 14 0 1 1.00 0.00% 15 0 5 5.00 0.00% 16 0 6 6.00 0.00% 17 0 20 20.00 0.00% 18 0 9 9.00 0.00% 19 0 2 2.00 0.00% 20 0 1 1.00 0.00% 21 0 2 2.00 0.00% Day Hour Count Average / Second Jul 13 07 219 0.06/s 08 223 0.06/s 09 221 0.06/s 10 223 0.06/s 11 221 0.06/s 12 219 0.06/s 13 219 0.06/s 14 217 0.06/s 15 220 0.06/s 16 219 0.06/s 17 219 0.06/s 18 221 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 13 07 221 48s192ms 48s86ms 08 223 2m23s 2m22s 09 221 11s369ms 11s284ms 10 223 2m6s 2m5s 11 221 2m4s 2m3s 12 219 36s860ms 36s711ms 13 219 55s644ms 55s638ms 14 217 20ms 15ms 15 220 2m21s 2m21s 16 219 50s741ms 50s572ms 17 219 2m 2m 18 221 2m7s 2m6s 19 219 50s742ms 50s732ms 20 217 20ms 14ms 21 221 2m45s 2m45s -
Connections
Established Connections
Key values
- 5 connections Connection Peak
- 2026-07-13 09:00:01 Date
Connections per database
Key values
- etendo Main Database
- 3,298 connections Total
Connections per user
Key values
- tad Main User
- 3,298 connections Total
-
Sessions
Simultaneous sessions
Key values
- 6 sessions Session Peak
- 2026-07-13 21:01:04 Date
Histogram of session times
Key values
- 3,239 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 3,300 sessions Total
Sessions per user
Key values
- tad Main User
- 3,300 sessions Total
Sessions per host
Key values
- 127.0.0.1 Main Host
- 3,300 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 30,754 buffers Checkpoint Peak
- 2026-07-13 18:12:40 Date
- 269.997 seconds Highest write time
- 0.003 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-07-13 14:43:08 Date
Checkpoints distance
Key values
- 56.65 Mo Distance Peak
- 2026-07-13 11:07:36 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 13 07 13,692 1,343.588s 0.011s 1,343.612s 08 19,192 1,915.483s 0.013s 1,915.519s 09 18,291 1,738.363s 0.012s 1,738.397s 10 19,552 1,959.06s 0.015s 1,959.102s 11 18,120 1,719.125s 0.015s 1,719.158s 12 21,140 2,114.249s 0.016s 2,114.287s 13 14,391 1,366.339s 0.011s 1,366.362s 14 16,224 1,620.082s 0.014s 1,620.11s 15 16,516 1,592.638s 0.011s 1,592.664s 16 19,835 1,980.063s 0.014s 1,980.098s 17 19,384 1,843.726s 0.012s 1,843.759s 18 48,514 2,043.224s 0.011s 2,043.256s 19 15,037 1,424.906s 0.008s 1,424.926s 20 16,852 1,684.07s 0.012s 1,684.098s 21 14,699 1,421.99s 0.008s 1,422.004s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 13 07 0 6 0 967 0.001s 0.011s 08 0 9 0 2,151 0.001s 0.013s 09 0 9 0 1,791 0.001s 0.011s 10 0 9 0 1,712 0.001s 0.013s 11 0 8 0 2,097 0.001s 0.011s 12 0 10 0 2,288 0.001s 0.013s 13 0 7 0 487 0.001s 0.011s 14 0 7 0 473 0.001s 0.013s 15 0 7 0 951 0.001s 0.011s 16 0 9 0 1,493 0.001s 0.013s 17 0 9 0 1,742 0.001s 0.011s 18 0 9 0 1,525 0.001s 0.011s 19 0 6 0 386 0.001s 0.008s 20 0 8 0 426 0.001s 0.012s 21 0 6 0 364 0.001s 0.008s Day Hour Count Avg time (sec) Jul 13 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 13 07 9,920.18 kB 200,210.09 kB 08 11,257.69 kB 65,495.15 kB 09 12,768.82 kB 27,117.09 kB 10 11,474.62 kB 16,638.62 kB 11 12,638.09 kB 22,251.91 kB 12 11,975.62 kB 16,414.23 kB 13 10,104.09 kB 21,195.55 kB 14 9,532.46 kB 13,815.54 kB 15 10,783.91 kB 19,644.45 kB 16 11,386.69 kB 15,515.54 kB 17 13,145.45 kB 22,481.09 kB 18 13,476.36 kB 19,728.64 kB 19 12,487.25 kB 21,506.50 kB 20 9,701.25 kB 14,302.17 kB 21 13,143.12 kB 20,491.38 kB -
Temporary Files
Size of temporary files
Key values
- 575.73 MiB Temp Files size Peak
- 2026-07-13 11:45:12 Date
Number of temporary files
Key values
- 29 per second Temp Files Peak
- 2026-07-13 11:45:12 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 13 07 30 120.20 MiB 4.01 MiB 08 264 5.92 GiB 22.97 MiB 09 4 115.55 MiB 28.89 MiB 10 9 814.16 MiB 90.46 MiB 11 540 11.10 GiB 21.06 MiB 12 168 2.19 GiB 13.37 MiB 13 2 22.53 MiB 11.27 MiB 14 2 22.53 MiB 11.27 MiB 15 5 162.05 MiB 32.41 MiB 16 9 278.62 MiB 30.96 MiB 17 110 743.42 MiB 6.76 MiB 18 349 1.33 GiB 3.90 MiB 19 2 22.53 MiB 11.27 MiB 20 2 22.53 MiB 11.27 MiB 21 2 22.53 MiB 11.27 MiB Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 396 1.35 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', '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-13 18:00:23 Duration: 48s679ms 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 ('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-13 18:01:11 Duration: 47s831ms 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 ('ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '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');
Date: 2026-07-13 18:16:37 Duration: 46s487ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 304 6.12 GiB 12.90 MiB 45.02 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26/3%') 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-13 11:48:06 Duration: 2s292ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26%') 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-13 11:48:04 Duration: 2s251ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26/3752%') 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-13 11:48:07 Duration: 2s250ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
3 298 1.02 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 = ?;-
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 = '037417A18FF6403684886EABBD4D5057';
Date: 2026-07-13 07:42:34 Duration: 2s377ms 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 = 'ECA5FA40027D4774A963617F20A182F0';
Date: 2026-07-13 08:11:38 Duration: 1s135ms 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 = '239264DBCFF1420D9D42E9DB86E5CF26';
Date: 2026-07-13 12:19:29 Duration: 1s103ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
4 108 5.29 GiB 27.86 MiB 72.49 MiB 50.17 MiB select productsto0_.m_product_stock_v_id as m_produc1_573_, productsto0_.ad_client_id as ad_clien2_573_, productsto0_.ad_org_id as ad_org_i3_573_, productsto0_.isactive as isactive4_573_, productsto0_.created as created5_573_, productsto0_.createdby as createdb6_573_, productsto0_.updated as updated7_573_, productsto0_.updatedby as updatedb8_573_, productsto0_.m_product_id as m_produc9_573_, productsto0_.qtyonhand as qtyonha10_573_, productsto0_.qtyorderonhand as qtyorde11_573_, productsto0_.preqtyonhand as preqtyo12_573_, productsto0_.preqtyorderonhand as preqtyo13_573_, productsto0_.c_uom_id as c_uom_i14_573_, productsto0_.m_product_uom_id as m_produ15_573_, productsto0_.m_attributesetinstance_id as m_attri16_573_, productsto0_.m_locator_id as m_locat17_573_, productsto0_.stocked as stocked18_573_, productsto0_.m_warehouse_id as m_wareh19_573_, productsto0_.m_refinventory_id as m_refin20_573_ from m_product_stock_v productsto0_ left outer join m_product product1_ on productsto0_.m_product_id = product1_.m_product_id where (upper(product1_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper(product1_.upc) like upper(?) escape ? or upper(coalesce(to_char((product1_.value || ?| | coalesce(to_char(( select producttrl2_.name from m_product_trl producttrl2_ where producttrl2_.m_product_id = product1_.m_product_id and producttrl2_.ad_language = ?)), to_char(product1_.name), ?))), ?)) like upper(?) escape ?) and (productsto0_.ad_org_id in (...)) and productsto0_.isactive = ? and ((? in (...)) and product1_.production = ? and productsto0_.stocked = ? or (? in (...)) and product1_.production = ? or (? in (...)) and product1_.isstocked = ? or (? in (...)) and product1_.ispurchased = ? or (? in (...)) and (productsto0_.m_warehouse_id is null or productsto0_.m_warehouse_id in ( select organizati7_.m_warehouse_id from ad_org_warehouse organizati7_ where organizati7_.ad_org_id = ?)) or ? not in (...)) and (productsto0_.ad_client_id in (...)) and productsto0_.isactive = ? order by product1_.value, product1_.name, product1_.m_product_id limit ?;-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%4243%') escape '|' or upper(product1_.Value) like upper('%4243%') escape '|' or upper(product1_.UPC) like upper('%4243%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%4243%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:21:03 Duration: 3s612ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%70192000%') escape '|' or upper(product1_.Value) like upper('%70192000%') escape '|' or upper(product1_.UPC) like upper('%70192000%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%70192000%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:28:30 Duration: 3s511ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%70192000%') escape '|' or upper(product1_.Value) like upper('%70192000%') escape '|' or upper(product1_.UPC) like upper('%70192000%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%70192000%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:28:53 Duration: 3s449ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 64 1.29 GiB 12.90 MiB 45.02 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/37%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:12 Duration: 2s268ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/3748%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:13 Duration: 2s239ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/374%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:13 Duration: 2s190ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
6 48 989.51 MiB 12.90 MiB 45.02 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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-13 11:44:00 Duration: 2s162ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:47:57 Duration: 2s55ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:54:46 Duration: 2s28ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
7 48 989.51 MiB 12.90 MiB 45.02 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') 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/354%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' 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-13 11:45:27 Duration: 2s242ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') 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/3540%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' 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-13 11:45:28 Duration: 2s197ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6', '14AEF17D0E1B47B19CCFDDDA0746FBB3', 'C4910B159C0D44519A5065EABA82046D', '5EE63F79A3E4466AADBC54B36A9B018B') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%14AEF17D0E1B47B19CCFDDDA0746FBB3%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%C4910B159C0D44519A5065EABA82046D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5EE63F79A3E4466AADBC54B36A9B018B%') 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/3548%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%14AEF17D0E1B47B19CCFDDDA0746FBB3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%C4910B159C0D44519A5065EABA82046D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5EE63F79A3E4466AADBC54B36A9B018B%' 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-13 12:02:23 Duration: 2s26ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
8 48 988.58 MiB 12.90 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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-13 11:43:55 Duration: 2s170ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:47:54 Duration: 1s784ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:54:43 Duration: 1s750ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
9 48 989.52 MiB 12.90 MiB 45.02 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') 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/3536%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' 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-13 11:44:37 Duration: 2s142ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') 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/3543%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' 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-13 12:01:17 Duration: 2s140ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') 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/354%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' 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-13 12:01:16 Duration: 2s133ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
10 33 1.50 GiB 46.51 MiB 46.51 MiB 46.51 MiB select * from c_order_post (?);-
SELECT * FROM C_ORDER_POST ('D0BBBF4DE6774BC891203CECCF4A0D3A');
Date: 2026-07-13 09:25:11 Duration: 7s864ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM C_ORDER_POST ('04A32F8AE2724BBA8BA95F11E2B15376');
Date: 2026-07-13 15:45:09 Duration: 7s814ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM C_ORDER_POST ('D117D8ACFDB9404BAA8622E7C15A87C5');
Date: 2026-07-13 11:45:29 Duration: 7s796ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
11 32 659.68 MiB 12.90 MiB 45.02 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6', '14AEF17D0E1B47B19CCFDDDA0746FBB3') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%14AEF17D0E1B47B19CCFDDDA0746FBB3%') 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/3544%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%14AEF17D0E1B47B19CCFDDDA0746FBB3%' 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-13 12:01:57 Duration: 2s85ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') 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/3539%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' 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-13 11:44:53 Duration: 2s73ms 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC') 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 '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' 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-13 11:44:52 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
12 16 329.84 MiB 12.90 MiB 45.02 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF', 'B24F6F467301476397A54E42AA9429AE', 'A8D45589660E46B3A358E73E3E941569') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B24F6F467301476397A54E42AA9429AE%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A8D45589660E46B3A358E73E3E941569%') 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/3541%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B24F6F467301476397A54E42AA9429AE%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A8D45589660E46B3A358E73E3E941569%' 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-13 11:45:54 Duration: 2s176ms 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF', 'B24F6F467301476397A54E42AA9429AE', 'A8D45589660E46B3A358E73E3E941569') 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( 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($19) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B24F6F467301476397A54E42AA9429AE%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A8D45589660E46B3A358E73E3E941569%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $20;
Date: 2026-07-13 11:45:53 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
13 16 329.84 MiB 12.90 MiB 45.02 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF', 'B24F6F467301476397A54E42AA9429AE') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B24F6F467301476397A54E42AA9429AE%') 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/3747%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B24F6F467301476397A54E42AA9429AE%' 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-13 11:45:41 Duration: 2s54ms 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF', 'B24F6F467301476397A54E42AA9429AE') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($17) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($18) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B24F6F467301476397A54E42AA9429AE%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $19;
Date: 2026-07-13 11:45:40 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
14 15 191.52 MiB 11.27 MiB 22.53 MiB 12.77 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-13 07:00:04 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
15 12 135.19 MiB 11.27 MiB 11.27 MiB 11.27 MiB select * from ( select ;-
SELECT * FROM ( select ;
Date: 2026-07-13 08:00:03 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
16 5 232.54 MiB 46.51 MiB 46.51 MiB 46.51 MiB select * from m_inout_post0 (?);-
SELECT * FROM M_InOut_Post0 ('89A5A7A1B81B427C942BC2AF9E38DC2B');
Date: 2026-07-13 08:42:41 Duration: 10s937ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM M_InOut_Post0 ('55234762820845EFBBC5D4F28E618333');
Date: 2026-07-13 18:30:00 Duration: 7s374ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM M_InOut_Post0 ('6419CBC633C049A3A3D1DA069BD288D7');
Date: 2026-07-13 18:11:31 Duration: 7s303ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
17 2 23.55 MiB 11.77 MiB 11.78 MiB 11.78 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-13 16:52:41 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
18 2 559.09 MiB 35.95 MiB 523.14 MiB 279.55 MiB select * from ( select ? as rn1, c.* from ( select value, name, dateacct, created, 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, coalesce(ev_trl.name, ev.name) as name, fact_acct.dateacct, amtacctdr, amtacctcr, fact_acct_id, fact_acct_group_id, fact_acct.account_id as id, fact_acct.description, gl.created, case ? 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(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 left join c_elementvalue ev on fact_acct.account_id = ev.c_elementvalue_id left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? left join gl_journal gl on fact_acct.record_id = gl.gl_journal_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, d.created having sum(amtacctdr) - sum(amtacctcr) <> ? order by groupbyname, groupbyid, value, name, id, dateacct, created asc nulls first, factaccttype, fact_acct_group_id, fact_acct_id, description, isdebit limit ? offset ?) c) b where ? = ?;-
SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR - AMTACCTCR), 0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT, 'J') AS DATEACCTNUMBER, $1 AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype, 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM ( SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE $2 WHEN 'BPartner' THEN c_bpartner.c_bpartner_id WHEN 'Product' THEN m_product.m_product_id WHEN 'Project' THEN c_project.c_project_id ELSE '' END AS groupbyid, CASE $3 WHEN 'BPartner' THEN ( select to_char(name) from c_bpartner b where b.c_bpartner_id = c_bpartner.c_bpartner_id) WHEN 'Product' THEN ( select to_char(value || ' - ' || name) from m_product p where p.m_product_id = m_product.m_product_id) WHEN 'Project' THEN ( select to_char(value || ' - ' || name) from c_project pj where pj.c_project_id = c_project.c_project_id) ELSE '' END AS groupbyname, CASE WHEN (AMTACCTDR > 0 AND AMTACCTCR = 0) OR (AMTACCTCR < 0 AND AMTACCTDR = 0) THEN 'Y' ELSE 'N' END AS ISDEBIT, CASE WHEN FACT_ACCT.FACTACCTTYPE = 'O' THEN 1 ELSE ( CASE WHEN FACT_ACCT.FACTACCTTYPE = 'N' THEN 2 ELSE ( CASE WHEN FACT_ACCT.FACTACCTTYPE = 'R' THEN 3 ELSE ( CASE WHEN FACT_ACCT.FACTACCTTYPE = 'C' THEN 4 END) END) END) END AS FACTACCTTYPE FROM FACT_ACCT LEFT JOIN C_BPARTNER ON FACT_ACCT.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID LEFT JOIN M_PRODUCT ON FACT_ACCT.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID LEFT JOIN C_PROJECT ON FACT_ACCT.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = $4 LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ($5 = 'Y' OR FACT_ACCT.ACCOUNT_ID IN ( SELECT c_elementvalue_id as name FROM C_ELEMENTVALUE WHERE value >= ( select value from c_elementvalue where c_elementvalue_id = $6) and value <= ( select value from c_elementvalue where c_elementvalue_id = $7) and c_elementvalue.ELEMENTLEVEL = 'S')) AND FACT_ACCT.AD_ORG_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND FACT_ACCT.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND FACT_ACCT.C_ACCTSCHEMA_ID = $8 AND FACT_ACCT.DATEACCT >= TO_DATE($9) AND FACT_ACCT.DATEACCT < TO_DATE($10) AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0) C) B WHERE 1 = 1;
Date: 2026-07-13 10:40:01 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
19 1 11.27 MiB 11.27 MiB 11.27 MiB 11.27 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-13 21:00:02 Duration: 1s8ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 523.14 MiB SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR - AMTACCTCR), 0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT, 'J') AS DATEACCTNUMBER, $1 AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype, 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM ( SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE $2 WHEN 'BPartner' THEN c_bpartner.c_bpartner_id WHEN 'Product' THEN m_product.m_product_id WHEN 'Project' THEN c_project.c_project_id ELSE '' END AS groupbyid, CASE $3 WHEN 'BPartner' THEN ( select to_char(name) from c_bpartner b where b.c_bpartner_id = c_bpartner.c_bpartner_id) WHEN 'Product' THEN ( select to_char(value || ' - ' || name) from m_product p where p.m_product_id = m_product.m_product_id) WHEN 'Project' THEN ( select to_char(value || ' - ' || name) from c_project pj where pj.c_project_id = c_project.c_project_id) ELSE '' END AS groupbyname, CASE WHEN (AMTACCTDR > 0 AND AMTACCTCR = 0) OR (AMTACCTCR < 0 AND AMTACCTDR = 0) THEN 'Y' ELSE 'N' END AS ISDEBIT, CASE WHEN FACT_ACCT.FACTACCTTYPE = 'O' THEN 1 ELSE ( CASE WHEN FACT_ACCT.FACTACCTTYPE = 'N' THEN 2 ELSE ( CASE WHEN FACT_ACCT.FACTACCTTYPE = 'R' THEN 3 ELSE ( CASE WHEN FACT_ACCT.FACTACCTTYPE = 'C' THEN 4 END) END) END) END AS FACTACCTTYPE FROM FACT_ACCT LEFT JOIN C_BPARTNER ON FACT_ACCT.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID LEFT JOIN M_PRODUCT ON FACT_ACCT.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID LEFT JOIN C_PROJECT ON FACT_ACCT.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = $4 LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ($5 = 'Y' OR FACT_ACCT.ACCOUNT_ID IN ( SELECT c_elementvalue_id as name FROM C_ELEMENTVALUE WHERE value >= ( select value from c_elementvalue where c_elementvalue_id = $6) and value <= ( select value from c_elementvalue where c_elementvalue_id = $7) and c_elementvalue.ELEMENTLEVEL = 'S')) AND FACT_ACCT.AD_ORG_ID IN ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B') AND FACT_ACCT.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND FACT_ACCT.C_ACCTSCHEMA_ID = $8 AND FACT_ACCT.DATEACCT >= TO_DATE($9) AND FACT_ACCT.DATEACCT < TO_DATE($10) AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0) C) B WHERE 1 = 1;[ Date: 2026-07-13 10:40:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:26:38 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:26:39 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:26:40 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:26:40 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:26:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:26:44 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:26:44 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:28 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:28 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:29 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:30 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:30 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:30 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:41 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:41 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:42 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 72.49 MiB select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper(product1_.UPC) like upper($3) escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper($4) escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ($5, $6)) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit $7;[ Date: 2026-07-13 08:28:44 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 7.07 sec Highest CPU-cost vacuum
Table public.c_invoice
Database etendo - 2026-07-13 18:05:08 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 7.07 sec Highest CPU-cost vacuum
Table public.c_invoice
Database etendo - 2026-07-13 18:05:08 Date
Analyzes per table
Key values
- public.ad_ep_instance_para (37) Main table analyzed (database etendo)
- 188 analyzes Total
Table Number of analyzes etendo.public.ad_ep_instance_para 37 etendo.public.ad_session 21 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.tables_list 11 etendo.profile.last_stat_io 8 etendo.profile.stmt_list 7 etendo.profile.indexes_list 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.public.ad_sequence 3 etendo.public.ad_preference 3 etendo.profile.last_stat_slru 2 etendo.public.c_invoice 2 etendo.profile.sample_stat_indexes_total 1 etendo.profile.sample_stat_slru 1 etendo.profile.sample_stat_indexes 1 etendo.profile.sample_stat_database 1 etendo.profile.sample_stat_user_functions 1 etendo.public.ad_pinstance 1 etendo.profile.sample_stat_io 1 etendo.profile.sample_statements 1 etendo.profile.sample_stat_tables 1 etendo.public.fin_financial_account 1 etendo.public.gl_journal 1 etendo.profile.sample_stat_tables_total 1 Total 188 Vacuums per table
Key values
- public.ad_ep_instance_para (23) Main table vacuumed on database etendo
- 132 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 23 23 1,380 0 109 0 0 157 48 365,140 0 0 etendo.profile.last_stat_user_functions_srv1 18 15 3,109 0 54 0 0 1,626 46 353,030 0 0 etendo.profile.last_stat_indexes_srv1 18 15 22,977 0 377 0 0 15,020 375 2,316,590 0 0 etendo.profile.last_stat_statements_srv1 18 15 14,318 0 217 0 0 8,917 214 1,399,656 0 0 etendo.profile.last_stat_tables_srv1 18 15 17,613 0 233 0 0 11,669 238 1,615,529 0 0 etendo.profile.tables_list 8 8 1,389 0 31 0 0 688 23 230,931 1 9 etendo.profile.stmt_list 5 5 1,363 0 44 0 0 840 34 274,922 9 34 etendo.profile.funcs_list 5 5 449 0 26 0 0 107 12 95,889 0 0 etendo.profile.last_stat_io 4 4 260 0 18 0 0 30 9 64,308 0 0 etendo.profile.indexes_list 4 4 502 0 20 0 0 141 15 119,723 0 0 etendo.pg_toast.pg_toast_201017 2 2 296 0 70 0 0 149 40 148,796 15 34 etendo.profile.last_stat_activity_count_srv1 2 0 41 0 9 0 0 9 3 23,688 0 0 etendo.profile.last_extension_versions 2 2 102 0 10 0 0 10 4 33,444 0 0 etendo.profile.sample_stat_tables 1 1 1,572 0 1,252 0 0 1,423 103 240,572 0 0 etendo.profile.last_stat_database_srv1 1 1 47 0 4 0 0 3 1 4,087 0 0 etendo.public.c_invoice 1 1 64,473 0 28,826 0 0 34,109 3,531 7,424,227 11 23 etendo.profile.last_stat_slru 1 1 70 0 5 0 0 5 2 16,732 0 0 etendo.pg_toast.pg_toast_2619 1 1 851 0 186 0 0 440 128 308,965 35 73 Total 132 118 130,812 9,339 31,491 0 0 75,343 4,826 15,036,229 71 173 Vacuum throughput per table
Key values
- public.c_invoice (7.07) 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_user_functions_srv1 0 0 0 etendo.profile.last_stat_indexes_srv1 0 0 0.33 etendo.profile.last_stat_statements_srv1 0 0 0.11 etendo.profile.last_stat_tables_srv1 0 0 0.15 etendo.profile.tables_list 0 0 0 etendo.profile.stmt_list 0 0 0 etendo.profile.funcs_list 0 0 0 etendo.profile.last_stat_io 0 0 0 etendo.profile.indexes_list 0 0 0 etendo.pg_toast.pg_toast_201017 0 0 0 etendo.profile.last_stat_activity_count_srv1 0 0 0 etendo.profile.last_extension_versions 0 0 0 etendo.profile.sample_stat_tables 0 0 0.31 etendo.profile.last_stat_database_srv1 0 0 0 etendo.public.c_invoice 0 0 7.07 etendo.profile.last_stat_slru 0 0 0 etendo.pg_toast.pg_toast_2619 0 0 0.05 Total 0 0 8.02 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (94146) Main table with removed tuples on database etendo
- 194682 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.profile.last_stat_indexes_srv1 18 15 94,146 74,685 18,813 311 6,565 etendo.profile.last_stat_tables_srv1 18 15 58,139 44,652 11,622 191 5,180 etendo.profile.last_stat_statements_srv1 18 15 28,303 34,582 5,150 479 3,127 etendo.profile.last_stat_user_functions_srv1 18 15 7,953 10,069 1,595 0 591 etendo.profile.sample_stat_tables 1 1 2,282 32,464 412 0 1,205 etendo.profile.tables_list 8 8 1,323 7,701 159 0 224 etendo.public.c_invoice 1 1 574 204,610 0 0 28,386 etendo.public.ad_ep_instance_para 23 23 447 0 0 22 1 etendo.profile.stmt_list 5 5 424 3,747 66 0 338 etendo.pg_toast.pg_toast_2619 1 1 293 1,824 0 0 625 etendo.profile.indexes_list 4 4 197 1,318 0 0 38 etendo.profile.funcs_list 5 5 181 859 20 0 35 etendo.profile.last_stat_io 4 4 147 80 16 0 8 etendo.profile.last_extension_versions 2 2 108 18 0 0 2 etendo.pg_toast.pg_toast_201017 2 2 70 279 0 0 82 etendo.profile.last_stat_slru 1 1 55 5 0 0 1 etendo.profile.last_stat_activity_count_srv1 2 0 40 8 8 1 1 etendo.profile.last_stat_database_srv1 1 1 0 8 4 0 1 Total 132 118 194,682 416,909 37,865 1,004 46,410 Pages removed per table
Key values
- profile.last_stat_statements_srv1 (479) Main table with removed pages on database etendo
- 1004 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed etendo.profile.last_stat_statements_srv1 18 15 28303 479 etendo.profile.last_stat_indexes_srv1 18 15 94146 311 etendo.profile.last_stat_tables_srv1 18 15 58139 191 etendo.public.ad_ep_instance_para 23 23 447 22 etendo.profile.last_stat_activity_count_srv1 2 0 40 1 etendo.profile.sample_stat_tables 1 1 2282 0 etendo.profile.last_stat_user_functions_srv1 18 15 7953 0 etendo.profile.last_stat_database_srv1 1 1 0 0 etendo.profile.last_stat_io 4 4 147 0 etendo.profile.stmt_list 5 5 424 0 etendo.pg_toast.pg_toast_201017 2 2 70 0 etendo.profile.indexes_list 4 4 197 0 etendo.public.c_invoice 1 1 574 0 etendo.profile.tables_list 8 8 1323 0 etendo.profile.last_stat_slru 1 1 55 0 etendo.profile.funcs_list 5 5 181 0 etendo.profile.last_extension_versions 2 2 108 0 etendo.pg_toast.pg_toast_2619 1 1 293 0 Total 132 118 194,682 1,004 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 13 07 5 7 08 7 14 09 12 17 10 6 11 11 11 23 12 9 15 13 8 10 14 5 11 15 8 9 16 8 15 17 12 23 18 14 9 19 10 6 20 8 12 21 9 6 - 7.07 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
- 222 Total read queries
- 7 Total write queries
Queries by database
Key values
- etendo Main database
- 229 Requests
- 14m13s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 228 Requests
User Request type Count Duration postgres Total 1 18s965ms select 1 18s965ms tad Total 228 13m54s delete 7 8s624ms select 221 13m45s Duration by user
Key values
- 13m54s (tad) Main time consuming user
User Request type Count Duration postgres Total 1 18s965ms select 1 18s965ms tad Total 228 13m54s delete 7 8s624ms select 221 13m45s Queries by host
Key values
- 127.0.0.1 Main host
- 228 Requests
- 13m54s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 228 Requests
- 13m54s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-13 08:23:36 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 222 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 48s679ms 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-13 18:00:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 47s831ms 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-13 18:01:11 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 46s487ms 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 ('ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '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');[ Date: 2026-07-13 18:16:37 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 45s934ms 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 ('945190F37ED446429A6A95913E39B50D', '3D6CD81DD33140F18C23EB552CB46E0A', '2112A0BB62004A48A967CD5E48DD20FE', '06EACD640160475FBC8079DE0DAF02A4', 'B482A628F9794306AFA5013E9FC0F4A9', '3002A1CFB4AA4B49AE6404C033589E42', '5FEB973579DE44889E19D4F1C0F8FA9A', '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');[ Date: 2026-07-13 18:17:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
5 18s965ms SELECT string_agg(distinct prac_checkacct_config (ca.c_acctschema_id, ca."name"), ' \n ') from c_acctschema ca where 1 = 1;[ Date: 2026-07-13 07:16:52 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
6 11s111ms SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR - AMTACCTCR), 0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT, 'J') AS DATEACCTNUMBER, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype, 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM ( SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE 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 LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ('Y' = '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 = NULL) and value <= ( select value from c_elementvalue where c_elementvalue_id = NULL) 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('00-00') AND FACT_ACCT.DATEACCT < TO_DATE('01-01-2026') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0) C) B WHERE 1 = 1;[ Date: 2026-07-13 10:40:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 10s937ms SELECT * FROM M_InOut_Post0 ('89A5A7A1B81B427C942BC2AF9E38DC2B');[ Date: 2026-07-13 08:42:41 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 7s864ms SELECT * FROM C_ORDER_POST ('D0BBBF4DE6774BC891203CECCF4A0D3A');[ Date: 2026-07-13 09:25:11 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
9 7s814ms SELECT * FROM C_ORDER_POST ('04A32F8AE2724BBA8BA95F11E2B15376');[ Date: 2026-07-13 15:45:09 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 7s796ms SELECT * FROM C_ORDER_POST ('D117D8ACFDB9404BAA8622E7C15A87C5');[ Date: 2026-07-13 11:45:29 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
11 7s788ms SELECT * FROM C_ORDER_POST ('EF359B2B1B494548A7E234DB93FE30D1');[ Date: 2026-07-13 10:00:24 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 7s679ms SELECT * FROM C_ORDER_POST ('EE98913A7DC84E2FB425917AED13B5E9');[ Date: 2026-07-13 11:06:32 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 7s627ms SELECT * FROM C_Order_Post ('69485EDDB81B434CAC935FE0D12FB1C0');[ Date: 2026-07-13 10:20:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 7s562ms SELECT * FROM C_ORDER_POST ('4061B3AE4A594891BE925342AE2F5933');[ Date: 2026-07-13 18:17:54 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 7s561ms SELECT * FROM C_ORDER_POST ('4A0DE56B21704FF4A049B9FC13BA6E8A');[ Date: 2026-07-13 11:39:21 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 7s551ms SELECT * FROM C_ORDER_POST ('CD667B28EC914591A4C1A2E31AAA052F');[ Date: 2026-07-13 17:39:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 7s534ms SELECT * FROM C_ORDER_POST ('05C8FE475FEA4F58B5D49085C1C3EFBB');[ Date: 2026-07-13 10:33:06 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 7s529ms SELECT * FROM C_ORDER_POST ('D9EEF2D3D36E44E68002B301186EE05E');[ Date: 2026-07-13 11:37:12 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 7s503ms SELECT * FROM C_ORDER_POST ('862EFAFCF2E1469A8537863F69C462DE');[ Date: 2026-07-13 08:49:19 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 7s502ms SELECT * FROM C_ORDER_POST ('E01FF765E0044470BE898EA7579751CE');[ Date: 2026-07-13 10:28:38 - 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 4m5s 33 6s991ms 7s864ms 7s431ms select * from c_order_post (?);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 13 08 1 7s503ms 7s503ms 09 2 15s291ms 7s645ms 10 5 37s752ms 7s550ms 11 10 1m14s 7s498ms 15 3 22s324ms 7s441ms 16 5 35s939ms 7s187ms 17 6 43s888ms 7s314ms 18 1 7s562ms 7s562ms [ User: tad - Total duration: 4m5s - Times executed: 33 ]
[ Application: openbravo - Total duration: 4m5s - Times executed: 33 ]
-
SELECT * FROM C_ORDER_POST ('D0BBBF4DE6774BC891203CECCF4A0D3A');
Date: 2026-07-13 09:25:11 Duration: 7s864ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('04A32F8AE2724BBA8BA95F11E2B15376');
Date: 2026-07-13 15:45:09 Duration: 7s814ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('D117D8ACFDB9404BAA8622E7C15A87C5');
Date: 2026-07-13 11:45:29 Duration: 7s796ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 3m10s 5 1s936ms 48s679ms 38s173ms 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 #2
Day Hour Count Duration Avg duration Jul 13 08 1 1s936ms 1s936ms 18 4 3m8s 47s233ms [ User: tad - Total duration: 3m10s - Times executed: 5 ]
[ Application: openbravo - Total duration: 3m10s - Times executed: 5 ]
-
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-13 18:00:23 Duration: 48s679ms 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 ('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-13 18:01:11 Duration: 47s831ms 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 ('ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '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');
Date: 2026-07-13 18:16:37 Duration: 46s487ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 2m44s 54 2s617ms 3s612ms 3s37ms select productsto0_.m_product_stock_v_id as m_produc1_573_, productsto0_.ad_client_id as ad_clien2_573_, productsto0_.ad_org_id as ad_org_i3_573_, productsto0_.isactive as isactive4_573_, productsto0_.created as created5_573_, productsto0_.createdby as createdb6_573_, productsto0_.updated as updated7_573_, productsto0_.updatedby as updatedb8_573_, productsto0_.m_product_id as m_produc9_573_, productsto0_.qtyonhand as qtyonha10_573_, productsto0_.qtyorderonhand as qtyorde11_573_, productsto0_.preqtyonhand as preqtyo12_573_, productsto0_.preqtyorderonhand as preqtyo13_573_, productsto0_.c_uom_id as c_uom_i14_573_, productsto0_.m_product_uom_id as m_produ15_573_, productsto0_.m_attributesetinstance_id as m_attri16_573_, productsto0_.m_locator_id as m_locat17_573_, productsto0_.stocked as stocked18_573_, productsto0_.m_warehouse_id as m_wareh19_573_, productsto0_.m_refinventory_id as m_refin20_573_ from m_product_stock_v productsto0_ left outer join m_product product1_ on productsto0_.m_product_id = product1_.m_product_id where (upper(product1_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper(product1_.upc) like upper(?) escape ? or upper(coalesce(to_char((product1_.value || ?| | coalesce(to_char(( select producttrl2_.name from m_product_trl producttrl2_ where producttrl2_.m_product_id = product1_.m_product_id and producttrl2_.ad_language = ?)), to_char(product1_.name), ?))), ?)) like upper(?) escape ?) and (productsto0_.ad_org_id in (...)) and productsto0_.isactive = ? and ((? in (...)) and product1_.production = ? and productsto0_.stocked = ? or (? in (...)) and product1_.production = ? or (? in (...)) and product1_.isstocked = ? or (? in (...)) and product1_.ispurchased = ? or (? in (...)) and (productsto0_.m_warehouse_id is null or productsto0_.m_warehouse_id in ( select organizati7_.m_warehouse_id from ad_org_warehouse organizati7_ where organizati7_.ad_org_id = ?)) or ? not in (...)) and (productsto0_.ad_client_id in (...)) and productsto0_.isactive = ? order by product1_.value, product1_.name, product1_.m_product_id limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 13 08 54 2m44s 3s37ms [ User: tad - Total duration: 2m44s - Times executed: 54 ]
[ Application: openbravo - Total duration: 2m44s - Times executed: 54 ]
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%4243%') escape '|' or upper(product1_.Value) like upper('%4243%') escape '|' or upper(product1_.UPC) like upper('%4243%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%4243%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:21:03 Duration: 3s612ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%70192000%') escape '|' or upper(product1_.Value) like upper('%70192000%') escape '|' or upper(product1_.UPC) like upper('%70192000%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%70192000%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:28:30 Duration: 3s511ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%70192000%') escape '|' or upper(product1_.Value) like upper('%70192000%') escape '|' or upper(product1_.UPC) like upper('%70192000%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%70192000%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:28:53 Duration: 3s449ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 59s127ms 56 1s 2s377ms 1s55ms select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id = ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 13 07 2 3s379ms 1s689ms 08 36 37s177ms 1s32ms 12 8 8s278ms 1s34ms 17 10 10s292ms 1s29ms [ User: tad - Total duration: 59s127ms - Times executed: 56 ]
[ Application: openbravo - Total duration: 59s127ms - Times executed: 56 ]
-
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 = '037417A18FF6403684886EABBD4D5057';
Date: 2026-07-13 07:42:34 Duration: 2s377ms 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 = 'ECA5FA40027D4774A963617F20A182F0';
Date: 2026-07-13 08:11:38 Duration: 1s135ms 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 = '239264DBCFF1420D9D42E9DB86E5CF26';
Date: 2026-07-13 12:19:29 Duration: 1s103ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 40s56ms 19 1s995ms 2s292ms 2s108ms 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 #5
Day Hour Count Duration Avg duration Jul 13 11 18 38s4ms 2s111ms 12 1 2s51ms 2s51ms [ User: tad - Total duration: 40s56ms - Times executed: 19 ]
[ Application: openbravo - Total duration: 40s56ms - Times executed: 19 ]
-
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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26/3%') 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-13 11:48:06 Duration: 2s292ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26%') 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-13 11:48:04 Duration: 2s251ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26/3752%') 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-13 11:48:07 Duration: 2s250ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 39s958ms 5 7s89ms 10s937ms 7s991ms select * from m_inout_post0 (?);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 13 08 1 10s937ms 10s937ms 17 2 14s341ms 7s170ms 18 2 14s678ms 7s339ms [ User: tad - Total duration: 39s958ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 39s958ms - Times executed: 5 ]
-
SELECT * FROM M_InOut_Post0 ('89A5A7A1B81B427C942BC2AF9E38DC2B');
Date: 2026-07-13 08:42:41 Duration: 10s937ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('55234762820845EFBBC5D4F28E618333');
Date: 2026-07-13 18:30:00 Duration: 7s374ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('6419CBC633C049A3A3D1DA069BD288D7');
Date: 2026-07-13 18:11:31 Duration: 7s303ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 18s965ms 1 18s965ms 18s965ms 18s965ms select string_agg(distinct prac_checkacct_config (ca.c_acctschema_id, ca."name"), ?) from c_acctschema ca where ? = ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 13 07 1 18s965ms 18s965ms [ User: postgres - Total duration: 18s965ms - Times executed: 1 ]
[ Application: psql - Total duration: 18s965ms - Times executed: 1 ]
-
SELECT string_agg(distinct prac_checkacct_config (ca.c_acctschema_id, ca."name"), ' \n ') from c_acctschema ca where 1 = 1;
Date: 2026-07-13 07:16:52 Duration: 18s965ms Database: etendo User: postgres Remote: [local] Application: psql
8 17s830ms 15 1s95ms 1s304ms 1s188ms 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 #8
Day Hour Count Duration Avg duration Jul 13 07 1 1s190ms 1s190ms 08 1 1s159ms 1s159ms 09 1 1s237ms 1s237ms 10 1 1s121ms 1s121ms 11 1 1s174ms 1s174ms 12 1 1s165ms 1s165ms 13 1 1s222ms 1s222ms 14 1 1s184ms 1s184ms 15 1 1s229ms 1s229ms 16 1 1s95ms 1s95ms 17 1 1s304ms 1s304ms 18 1 1s167ms 1s167ms 19 1 1s183ms 1s183ms 20 1 1s151ms 1s151ms 21 1 1s242ms 1s242ms [ User: tad - Total duration: 17s830ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 17s830ms - 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-13 17:00:01 Duration: 1s304ms 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-13 21:00:01 Duration: 1s242ms 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-13 09:00:01 Duration: 1s237ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 12s992ms 2 1s881ms 11s111ms 6s496ms select * from ( select ? as rn1, c.* from ( select value, name, dateacct, created, 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, ? as amtacctdrprevsum, ? as amtacctcrprevsum from ( select fact_acct.acctvalue as value, coalesce(ev_trl.name, ev.name) as name, fact_acct.dateacct, amtacctdr, amtacctcr, fact_acct_id, fact_acct_group_id, fact_acct.account_id as id, fact_acct.description, gl.created, case 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 left join c_elementvalue ev on fact_acct.account_id = ev.c_elementvalue_id left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? left join gl_journal gl on fact_acct.record_id = gl.gl_journal_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, d.created having sum(amtacctdr) - sum(amtacctcr) <> ? order by groupbyname, groupbyid, value, name, id, dateacct, created asc nulls first, factaccttype, fact_acct_group_id, fact_acct_id, description, isdebit limit ? offset ?) c) b where ? = ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 13 10 2 12s992ms 6s496ms [ User: tad - Total duration: 12s992ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 12s992ms - Times executed: 2 ]
-
SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR - AMTACCTCR), 0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT, 'J') AS DATEACCTNUMBER, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype, 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM ( SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE 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 LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ('Y' = '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 = NULL) and value <= ( select value from c_elementvalue where c_elementvalue_id = NULL) 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('00-00') AND FACT_ACCT.DATEACCT < TO_DATE('01-01-2026') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0) C) B WHERE 1 = 1;
Date: 2026-07-13 10:40:16 Duration: 11s111ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR - AMTACCTCR), 0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT, 'J') AS DATEACCTNUMBER, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype, 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM ( SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE 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 LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ('Y' = '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 = NULL) and value <= ( select value from c_elementvalue where c_elementvalue_id = NULL) 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-01-2025') AND FACT_ACCT.DATEACCT < TO_DATE('01-01-2026') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0) C) B WHERE 1 = 1;
Date: 2026-07-13 10:40:01 Duration: 1s881ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 8s770ms 4 2s70ms 2s268ms 2s192ms 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 ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 13 11 3 6s699ms 2s233ms 12 1 2s70ms 2s70ms [ User: tad - Total duration: 8s770ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s770ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/37%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:12 Duration: 2s268ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/3748%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:13 Duration: 2s239ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/374%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:13 Duration: 2s190ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 8s624ms 7 1s151ms 1s420ms 1s232ms delete from m_product where m_product_id = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 13 12 7 8s624ms 1s232ms [ User: tad - Total duration: 8s624ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 8s624ms - Times executed: 7 ]
-
delete from M_Product where M_Product_ID = 'EF64B5FA385B4445ABC086484366CE83';
Date: 2026-07-13 12:32:41 Duration: 1s420ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = '8AF3D0B620844616872A1EAD6D48088B';
Date: 2026-07-13 12:33:19 Duration: 1s254ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = '06D12F162D8343F3837E7A1CAB5D364B';
Date: 2026-07-13 12:36:41 Duration: 1s243ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 6s467ms 3 2s26ms 2s242ms 2s155ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 13 11 2 4s440ms 2s220ms 12 1 2s26ms 2s26ms [ User: tad - Total duration: 6s467ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s467ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') 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/354%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' 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-13 11:45:27 Duration: 2s242ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') 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/3540%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' 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-13 11:45:28 Duration: 2s197ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6', '14AEF17D0E1B47B19CCFDDDA0746FBB3', 'C4910B159C0D44519A5065EABA82046D', '5EE63F79A3E4466AADBC54B36A9B018B') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%14AEF17D0E1B47B19CCFDDDA0746FBB3%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%C4910B159C0D44519A5065EABA82046D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5EE63F79A3E4466AADBC54B36A9B018B%') 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/3548%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%14AEF17D0E1B47B19CCFDDDA0746FBB3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%C4910B159C0D44519A5065EABA82046D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5EE63F79A3E4466AADBC54B36A9B018B%' 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-13 12:02:23 Duration: 2s26ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 6s416ms 3 2s133ms 2s142ms 2s138ms 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 #13
Day Hour Count Duration Avg duration Jul 13 11 1 2s142ms 2s142ms 12 2 4s274ms 2s137ms [ User: tad - Total duration: 6s416ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s416ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') 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/3536%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' 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-13 11:44:37 Duration: 2s142ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') 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/3543%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' 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-13 12:01:17 Duration: 2s140ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') 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/354%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' 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-13 12:01:16 Duration: 2s133ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 6s270ms 6 1s9ms 1s97ms 1s45ms 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 13 09 1 1s9ms 1s9ms 11 1 1s14ms 1s14ms 15 1 1s97ms 1s97ms 17 1 1s43ms 1s43ms 18 1 1s43ms 1s43ms 19 1 1s63ms 1s63ms [ User: tad - Total duration: 6s270ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 6s270ms - Times executed: 6 ]
-
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-13 15:00:01 Duration: 1s97ms 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-13 19:00:01 Duration: 1s63ms 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-13 18:00:01 Duration: 1s43ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 6s245ms 3 2s28ms 2s162ms 2s81ms 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 #15
Day Hour Count Duration Avg duration Jul 13 11 3 6s245ms 2s81ms [ User: tad - Total duration: 6s245ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s245ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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-13 11:44:00 Duration: 2s162ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:47:57 Duration: 2s55ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:54:46 Duration: 2s28ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 5s705ms 3 1s750ms 2s170ms 1s901ms 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 ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 13 11 3 5s705ms 1s901ms [ User: tad - Total duration: 5s705ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s705ms - 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 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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-13 11:43:55 Duration: 2s170ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:47:54 Duration: 1s784ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:54:43 Duration: 1s750ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 4s159ms 2 2s73ms 2s85ms 2s79ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 13 11 1 2s73ms 2s73ms 12 1 2s85ms 2s85ms [ User: tad - Total duration: 4s159ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s159ms - Times executed: 2 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6', '14AEF17D0E1B47B19CCFDDDA0746FBB3') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%14AEF17D0E1B47B19CCFDDDA0746FBB3%') 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/3544%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%14AEF17D0E1B47B19CCFDDDA0746FBB3%' 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-13 12:01:57 Duration: 2s85ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') 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/3539%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' 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-13 11:44:53 Duration: 2s73ms 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC') 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 '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' 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-13 11:44:52 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
18 2s552ms 2 1s265ms 1s286ms 1s276ms 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 #18
Day Hour Count Duration Avg duration Jul 13 08 1 1s265ms 1s265ms 09 1 1s286ms 1s286ms [ User: tad - Total duration: 2s552ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 2s552ms - Times executed: 2 ]
-
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('%KV300R7%') or upper(product1_.Value) like upper('%KV300R7%') or upper(product1_.Name) like upper('%KV300R7%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-13 09:28:40 Duration: 1s286ms 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('%osram%') or upper(product1_.Value) like upper('%osram%') or upper(product1_.Name) like upper('%osram%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-13 08:45:29 Duration: 1s265ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 2s176ms 1 2s176ms 2s176ms 2s176ms 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 #19
Day Hour Count Duration Avg duration Jul 13 11 1 2s176ms 2s176ms [ User: tad - Total duration: 2s176ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s176ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF', 'B24F6F467301476397A54E42AA9429AE', 'A8D45589660E46B3A358E73E3E941569') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B24F6F467301476397A54E42AA9429AE%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A8D45589660E46B3A358E73E3E941569%') 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/3541%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B24F6F467301476397A54E42AA9429AE%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A8D45589660E46B3A358E73E3E941569%' 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-13 11:45:54 Duration: 2s176ms 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF', 'B24F6F467301476397A54E42AA9429AE', 'A8D45589660E46B3A358E73E3E941569') 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( 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($19) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B24F6F467301476397A54E42AA9429AE%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A8D45589660E46B3A358E73E3E941569%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $20;
Date: 2026-07-13 11:45:53 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
20 2s69ms 2 1s2ms 1s67ms 1s34ms 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 #20
Day Hour Count Duration Avg duration Jul 13 12 2 2s69ms 1s34ms [ User: tad - Total duration: 2s69ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 2s69ms - Times executed: 2 ]
-
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('%EMMS%') 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-13 12:34:00 Duration: 1s67ms 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('%EM%') 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-13 12:32:23 Duration: 1s2ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 56 59s127ms 1s 2s377ms 1s55ms 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 #1
Day Hour Count Duration Avg duration Jul 13 07 2 3s379ms 1s689ms 08 36 37s177ms 1s32ms 12 8 8s278ms 1s34ms 17 10 10s292ms 1s29ms [ User: tad - Total duration: 59s127ms - Times executed: 56 ]
[ Application: openbravo - Total duration: 59s127ms - Times executed: 56 ]
-
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 = '037417A18FF6403684886EABBD4D5057';
Date: 2026-07-13 07:42:34 Duration: 2s377ms 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 = 'ECA5FA40027D4774A963617F20A182F0';
Date: 2026-07-13 08:11:38 Duration: 1s135ms 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 = '239264DBCFF1420D9D42E9DB86E5CF26';
Date: 2026-07-13 12:19:29 Duration: 1s103ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 54 2m44s 2s617ms 3s612ms 3s37ms select productsto0_.m_product_stock_v_id as m_produc1_573_, productsto0_.ad_client_id as ad_clien2_573_, productsto0_.ad_org_id as ad_org_i3_573_, productsto0_.isactive as isactive4_573_, productsto0_.created as created5_573_, productsto0_.createdby as createdb6_573_, productsto0_.updated as updated7_573_, productsto0_.updatedby as updatedb8_573_, productsto0_.m_product_id as m_produc9_573_, productsto0_.qtyonhand as qtyonha10_573_, productsto0_.qtyorderonhand as qtyorde11_573_, productsto0_.preqtyonhand as preqtyo12_573_, productsto0_.preqtyorderonhand as preqtyo13_573_, productsto0_.c_uom_id as c_uom_i14_573_, productsto0_.m_product_uom_id as m_produ15_573_, productsto0_.m_attributesetinstance_id as m_attri16_573_, productsto0_.m_locator_id as m_locat17_573_, productsto0_.stocked as stocked18_573_, productsto0_.m_warehouse_id as m_wareh19_573_, productsto0_.m_refinventory_id as m_refin20_573_ from m_product_stock_v productsto0_ left outer join m_product product1_ on productsto0_.m_product_id = product1_.m_product_id where (upper(product1_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper(product1_.upc) like upper(?) escape ? or upper(coalesce(to_char((product1_.value || ?| | coalesce(to_char(( select producttrl2_.name from m_product_trl producttrl2_ where producttrl2_.m_product_id = product1_.m_product_id and producttrl2_.ad_language = ?)), to_char(product1_.name), ?))), ?)) like upper(?) escape ?) and (productsto0_.ad_org_id in (...)) and productsto0_.isactive = ? and ((? in (...)) and product1_.production = ? and productsto0_.stocked = ? or (? in (...)) and product1_.production = ? or (? in (...)) and product1_.isstocked = ? or (? in (...)) and product1_.ispurchased = ? or (? in (...)) and (productsto0_.m_warehouse_id is null or productsto0_.m_warehouse_id in ( select organizati7_.m_warehouse_id from ad_org_warehouse organizati7_ where organizati7_.ad_org_id = ?)) or ? not in (...)) and (productsto0_.ad_client_id in (...)) and productsto0_.isactive = ? order by product1_.value, product1_.name, product1_.m_product_id limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 13 08 54 2m44s 3s37ms [ User: tad - Total duration: 2m44s - Times executed: 54 ]
[ Application: openbravo - Total duration: 2m44s - Times executed: 54 ]
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%4243%') escape '|' or upper(product1_.Value) like upper('%4243%') escape '|' or upper(product1_.UPC) like upper('%4243%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%4243%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:21:03 Duration: 3s612ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%70192000%') escape '|' or upper(product1_.Value) like upper('%70192000%') escape '|' or upper(product1_.UPC) like upper('%70192000%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%70192000%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:28:30 Duration: 3s511ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%70192000%') escape '|' or upper(product1_.Value) like upper('%70192000%') escape '|' or upper(product1_.UPC) like upper('%70192000%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%70192000%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:28:53 Duration: 3s449ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 33 4m5s 6s991ms 7s864ms 7s431ms select * from c_order_post (?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 13 08 1 7s503ms 7s503ms 09 2 15s291ms 7s645ms 10 5 37s752ms 7s550ms 11 10 1m14s 7s498ms 15 3 22s324ms 7s441ms 16 5 35s939ms 7s187ms 17 6 43s888ms 7s314ms 18 1 7s562ms 7s562ms [ User: tad - Total duration: 4m5s - Times executed: 33 ]
[ Application: openbravo - Total duration: 4m5s - Times executed: 33 ]
-
SELECT * FROM C_ORDER_POST ('D0BBBF4DE6774BC891203CECCF4A0D3A');
Date: 2026-07-13 09:25:11 Duration: 7s864ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('04A32F8AE2724BBA8BA95F11E2B15376');
Date: 2026-07-13 15:45:09 Duration: 7s814ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('D117D8ACFDB9404BAA8622E7C15A87C5');
Date: 2026-07-13 11:45:29 Duration: 7s796ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 19 40s56ms 1s995ms 2s292ms 2s108ms 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 #4
Day Hour Count Duration Avg duration Jul 13 11 18 38s4ms 2s111ms 12 1 2s51ms 2s51ms [ User: tad - Total duration: 40s56ms - Times executed: 19 ]
[ Application: openbravo - Total duration: 40s56ms - Times executed: 19 ]
-
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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26/3%') 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-13 11:48:06 Duration: 2s292ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26%') 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-13 11:48:04 Duration: 2s251ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26/3752%') 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-13 11:48:07 Duration: 2s250ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 15 17s830ms 1s95ms 1s304ms 1s188ms 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 #5
Day Hour Count Duration Avg duration Jul 13 07 1 1s190ms 1s190ms 08 1 1s159ms 1s159ms 09 1 1s237ms 1s237ms 10 1 1s121ms 1s121ms 11 1 1s174ms 1s174ms 12 1 1s165ms 1s165ms 13 1 1s222ms 1s222ms 14 1 1s184ms 1s184ms 15 1 1s229ms 1s229ms 16 1 1s95ms 1s95ms 17 1 1s304ms 1s304ms 18 1 1s167ms 1s167ms 19 1 1s183ms 1s183ms 20 1 1s151ms 1s151ms 21 1 1s242ms 1s242ms [ User: tad - Total duration: 17s830ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 17s830ms - 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-13 17:00:01 Duration: 1s304ms 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-13 21:00:01 Duration: 1s242ms 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-13 09:00:01 Duration: 1s237ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 7 8s624ms 1s151ms 1s420ms 1s232ms delete from m_product where m_product_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 13 12 7 8s624ms 1s232ms [ User: tad - Total duration: 8s624ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 8s624ms - Times executed: 7 ]
-
delete from M_Product where M_Product_ID = 'EF64B5FA385B4445ABC086484366CE83';
Date: 2026-07-13 12:32:41 Duration: 1s420ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = '8AF3D0B620844616872A1EAD6D48088B';
Date: 2026-07-13 12:33:19 Duration: 1s254ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = '06D12F162D8343F3837E7A1CAB5D364B';
Date: 2026-07-13 12:36:41 Duration: 1s243ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 6 6s270ms 1s9ms 1s97ms 1s45ms 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 #7
Day Hour Count Duration Avg duration Jul 13 09 1 1s9ms 1s9ms 11 1 1s14ms 1s14ms 15 1 1s97ms 1s97ms 17 1 1s43ms 1s43ms 18 1 1s43ms 1s43ms 19 1 1s63ms 1s63ms [ User: tad - Total duration: 6s270ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 6s270ms - Times executed: 6 ]
-
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-13 15:00:01 Duration: 1s97ms 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-13 19:00:01 Duration: 1s63ms 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-13 18:00:01 Duration: 1s43ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 5 3m10s 1s936ms 48s679ms 38s173ms 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 #8
Day Hour Count Duration Avg duration Jul 13 08 1 1s936ms 1s936ms 18 4 3m8s 47s233ms [ User: tad - Total duration: 3m10s - Times executed: 5 ]
[ Application: openbravo - Total duration: 3m10s - Times executed: 5 ]
-
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-13 18:00:23 Duration: 48s679ms 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 ('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-13 18:01:11 Duration: 47s831ms 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 ('ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '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');
Date: 2026-07-13 18:16:37 Duration: 46s487ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 5 39s958ms 7s89ms 10s937ms 7s991ms select * from m_inout_post0 (?);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 13 08 1 10s937ms 10s937ms 17 2 14s341ms 7s170ms 18 2 14s678ms 7s339ms [ User: tad - Total duration: 39s958ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 39s958ms - Times executed: 5 ]
-
SELECT * FROM M_InOut_Post0 ('89A5A7A1B81B427C942BC2AF9E38DC2B');
Date: 2026-07-13 08:42:41 Duration: 10s937ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('55234762820845EFBBC5D4F28E618333');
Date: 2026-07-13 18:30:00 Duration: 7s374ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('6419CBC633C049A3A3D1DA069BD288D7');
Date: 2026-07-13 18:11:31 Duration: 7s303ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 4 8s770ms 2s70ms 2s268ms 2s192ms 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 ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 13 11 3 6s699ms 2s233ms 12 1 2s70ms 2s70ms [ User: tad - Total duration: 8s770ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s770ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/37%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:12 Duration: 2s268ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/3748%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:13 Duration: 2s239ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/374%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:13 Duration: 2s190ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 3 6s467ms 2s26ms 2s242ms 2s155ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 13 11 2 4s440ms 2s220ms 12 1 2s26ms 2s26ms [ User: tad - Total duration: 6s467ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s467ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') 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/354%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' 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-13 11:45:27 Duration: 2s242ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') 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/3540%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' 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-13 11:45:28 Duration: 2s197ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6', '14AEF17D0E1B47B19CCFDDDA0746FBB3', 'C4910B159C0D44519A5065EABA82046D', '5EE63F79A3E4466AADBC54B36A9B018B') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%14AEF17D0E1B47B19CCFDDDA0746FBB3%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%C4910B159C0D44519A5065EABA82046D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5EE63F79A3E4466AADBC54B36A9B018B%') 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/3548%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%14AEF17D0E1B47B19CCFDDDA0746FBB3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%C4910B159C0D44519A5065EABA82046D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5EE63F79A3E4466AADBC54B36A9B018B%' 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-13 12:02:23 Duration: 2s26ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 3 6s416ms 2s133ms 2s142ms 2s138ms 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 13 11 1 2s142ms 2s142ms 12 2 4s274ms 2s137ms [ User: tad - Total duration: 6s416ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s416ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') 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/3536%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' 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-13 11:44:37 Duration: 2s142ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') 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/3543%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' 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-13 12:01:17 Duration: 2s140ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') 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/354%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' 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-13 12:01:16 Duration: 2s133ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 3 6s245ms 2s28ms 2s162ms 2s81ms 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 #13
Day Hour Count Duration Avg duration Jul 13 11 3 6s245ms 2s81ms [ User: tad - Total duration: 6s245ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s245ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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-13 11:44:00 Duration: 2s162ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:47:57 Duration: 2s55ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:54:46 Duration: 2s28ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 3 5s705ms 1s750ms 2s170ms 1s901ms 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 ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 13 11 3 5s705ms 1s901ms [ User: tad - Total duration: 5s705ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s705ms - 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 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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-13 11:43:55 Duration: 2s170ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:47:54 Duration: 1s784ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:54:43 Duration: 1s750ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 2 12s992ms 1s881ms 11s111ms 6s496ms select * from ( select ? as rn1, c.* from ( select value, name, dateacct, created, 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, ? as amtacctdrprevsum, ? as amtacctcrprevsum from ( select fact_acct.acctvalue as value, coalesce(ev_trl.name, ev.name) as name, fact_acct.dateacct, amtacctdr, amtacctcr, fact_acct_id, fact_acct_group_id, fact_acct.account_id as id, fact_acct.description, gl.created, case 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 left join c_elementvalue ev on fact_acct.account_id = ev.c_elementvalue_id left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? left join gl_journal gl on fact_acct.record_id = gl.gl_journal_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, d.created having sum(amtacctdr) - sum(amtacctcr) <> ? order by groupbyname, groupbyid, value, name, id, dateacct, created asc nulls first, factaccttype, fact_acct_group_id, fact_acct_id, description, isdebit limit ? offset ?) c) b where ? = ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 13 10 2 12s992ms 6s496ms [ User: tad - Total duration: 12s992ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 12s992ms - Times executed: 2 ]
-
SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR - AMTACCTCR), 0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT, 'J') AS DATEACCTNUMBER, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype, 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM ( SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE 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 LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ('Y' = '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 = NULL) and value <= ( select value from c_elementvalue where c_elementvalue_id = NULL) 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('00-00') AND FACT_ACCT.DATEACCT < TO_DATE('01-01-2026') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0) C) B WHERE 1 = 1;
Date: 2026-07-13 10:40:16 Duration: 11s111ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR - AMTACCTCR), 0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT, 'J') AS DATEACCTNUMBER, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype, 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM ( SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE 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 LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ('Y' = '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 = NULL) and value <= ( select value from c_elementvalue where c_elementvalue_id = NULL) 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-01-2025') AND FACT_ACCT.DATEACCT < TO_DATE('01-01-2026') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0) C) B WHERE 1 = 1;
Date: 2026-07-13 10:40:01 Duration: 1s881ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 2 4s159ms 2s73ms 2s85ms 2s79ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 13 11 1 2s73ms 2s73ms 12 1 2s85ms 2s85ms [ User: tad - Total duration: 4s159ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s159ms - Times executed: 2 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6', '14AEF17D0E1B47B19CCFDDDA0746FBB3') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%14AEF17D0E1B47B19CCFDDDA0746FBB3%') 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/3544%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%14AEF17D0E1B47B19CCFDDDA0746FBB3%' 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-13 12:01:57 Duration: 2s85ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') 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/3539%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' 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-13 11:44:53 Duration: 2s73ms 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC') 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 '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' 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-13 11:44:52 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
17 2 2s552ms 1s265ms 1s286ms 1s276ms select product1_.value as col_0_0_, product1_.m_product_id as col_1_0_, pricingpri2_.m_pricelist_version_id as col_2_0_, pricingpri2_.name as col_3_0_, currency4_.c_currency_id as col_4_0_, pricingpro0_.pricelimit as col_5_0_, product1_.name as col_6_0_, product1_.c_uom_id as col_7_0_, pricingpro0_.pricestd as col_8_0_, pricingpro0_.pricelist as col_9_0_, pricingpri3_.issopricelist as col_10_0_, product1_.characteristic_desc as col_11_0_, product5_.name as col_12_0_, product1_.upc as col_13_0_, pricingpri2_.m_pricelist_version_id as m_pricel1_551_0_, uom6_.c_uom_id as c_uom_id1_324_1_, pricingpri2_.ad_client_id as ad_clien2_551_0_, pricingpri2_.ad_org_id as ad_org_i3_551_0_, pricingpri2_.isactive as isactive4_551_0_, pricingpri2_.created as created5_551_0_, pricingpri2_.createdby as createdb6_551_0_, pricingpri2_.updated as updated7_551_0_, pricingpri2_.updatedby as updatedb8_551_0_, pricingpri2_.name as name9_551_0_, pricingpri2_.description as descrip10_551_0_, pricingpri2_.m_pricelist_id as m_price11_551_0_, pricingpri2_.m_discountschema_id as m_disco12_551_0_, pricingpri2_.validfrom as validfr13_551_0_, pricingpri2_.proccreate as proccre14_551_0_, pricingpri2_.m_pricelist_version_base_id as m_price15_551_0_, pricingpri2_.m_pricelist_version_generate as m_price16_551_0_, pricingpri2_.em_pruti_import_prices as em_prut17_551_0_, uom6_.ad_client_id as ad_clien2_324_1_, uom6_.ad_org_id as ad_org_i3_324_1_, uom6_.isactive as isactive4_324_1_, uom6_.created as created5_324_1_, uom6_.updated as updated6_324_1_, uom6_.createdby as createdb7_324_1_, uom6_.updatedby as updatedb8_324_1_, uom6_.x12de355 as x9_324_1_, uom6_.uomsymbol as uomsymb10_324_1_, uom6_.name as name11_324_1_, uom6_.description as descrip12_324_1_, uom6_.stdprecision as stdprec13_324_1_, uom6_.costingprecision as costing14_324_1_, uom6_.isdefault as isdefau15_324_1_, uom6_.breakdown as breakdo16_324_1_, uom6_.uom_type as uom_typ17_324_1_, uom6_.useinproduction as useinpr18_324_1_ from m_productprice pricingpro0_ inner join m_product product1_ on pricingpro0_.m_product_id = product1_.m_product_id inner join m_pricelist_version pricingpri2_ on pricingpro0_.m_pricelist_version_id = pricingpri2_.m_pricelist_version_id inner join m_pricelist pricingpri3_ on pricingpri2_.m_pricelist_id = pricingpri3_.m_pricelist_id left outer join c_currency currency4_ on pricingpri3_.c_currency_id = currency4_.c_currency_id left outer join m_product product5_ on product1_.generic_product_id = product5_.m_product_id inner join c_uom uom6_ on product1_.c_uom_id = uom6_.c_uom_id where product1_.isgeneric = ? and product1_.isactive = ? and pricingpri2_.isactive = ? and (product1_.ad_client_id in (...)) and (product1_.ad_org_id in (...)) and pricingpri3_.issopricelist = ? and currency4_.c_currency_id = ? and (upper(product1_.upc) like upper(?) or upper(product1_.value) like upper(?) or upper(product1_.name) like upper(?)) and (upper(pricingpri2_.name) like upper(?)) and pricingpri2_.m_pricelist_version_id = ? order by ? limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 13 08 1 1s265ms 1s265ms 09 1 1s286ms 1s286ms [ User: tad - Total duration: 2s552ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 2s552ms - Times executed: 2 ]
-
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('%KV300R7%') or upper(product1_.Value) like upper('%KV300R7%') or upper(product1_.Name) like upper('%KV300R7%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-13 09:28:40 Duration: 1s286ms 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('%osram%') or upper(product1_.Value) like upper('%osram%') or upper(product1_.Name) like upper('%osram%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-13 08:45:29 Duration: 1s265ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 2 2s69ms 1s2ms 1s67ms 1s34ms 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 13 12 2 2s69ms 1s34ms [ User: tad - Total duration: 2s69ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 2s69ms - Times executed: 2 ]
-
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('%EMMS%') 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-13 12:34:00 Duration: 1s67ms 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('%EM%') 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-13 12:32:23 Duration: 1s2ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 1 18s965ms 18s965ms 18s965ms 18s965ms select string_agg(distinct prac_checkacct_config (ca.c_acctschema_id, ca."name"), ?) from c_acctschema ca where ? = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 13 07 1 18s965ms 18s965ms [ User: postgres - Total duration: 18s965ms - Times executed: 1 ]
[ Application: psql - Total duration: 18s965ms - Times executed: 1 ]
-
SELECT string_agg(distinct prac_checkacct_config (ca.c_acctschema_id, ca."name"), ' \n ') from c_acctschema ca where 1 = 1;
Date: 2026-07-13 07:16:52 Duration: 18s965ms Database: etendo User: postgres Remote: [local] Application: psql
20 1 2s176ms 2s176ms 2s176ms 2s176ms 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 #20
Day Hour Count Duration Avg duration Jul 13 11 1 2s176ms 2s176ms [ User: tad - Total duration: 2s176ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s176ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF', 'B24F6F467301476397A54E42AA9429AE', 'A8D45589660E46B3A358E73E3E941569') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B24F6F467301476397A54E42AA9429AE%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A8D45589660E46B3A358E73E3E941569%') 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/3541%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B24F6F467301476397A54E42AA9429AE%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A8D45589660E46B3A358E73E3E941569%' 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-13 11:45:54 Duration: 2s176ms 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF', 'B24F6F467301476397A54E42AA9429AE', 'A8D45589660E46B3A358E73E3E941569') 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( 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($19) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B24F6F467301476397A54E42AA9429AE%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A8D45589660E46B3A358E73E3E941569%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $20;
Date: 2026-07-13 11:45:53 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 1s936ms 48s679ms 38s173ms 5 3m10s 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 13 08 1 1s936ms 1s936ms 18 4 3m8s 47s233ms [ User: tad - Total duration: 3m10s - Times executed: 5 ]
[ Application: openbravo - Total duration: 3m10s - Times executed: 5 ]
-
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-13 18:00:23 Duration: 48s679ms 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 ('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-13 18:01:11 Duration: 47s831ms 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 ('ECA5FA40027D4774A963617F20A182F0', 'C9A66C1D73CD4EAA9A653BC3A834EC8B', 'BF731ED9A22444D69932D55067CCE293', 'BA0DD37FFF49405AB4AC143B9E65AD0A', 'A66132309A6A422BA51FC2B90F9081E2', 'A217C94B57894F7FA59B791FBB7E210D', '9E80B16534FA4450830D2F6F953357D1', '9BA6EC0729E34B88997539E830B001EF', '8577819CD29C40C1A59308306AF3C689', '7FFD4129BE8B43578A912CBF97F0562F', '623A6A2853BE4171BA1F26ED4A75F35A', '47FF59181BC04F739094A7823B20C42A', '2FBF094E5F0B49CDB5A6ABE3A5F4D886', '239264DBCFF1420D9D42E9DB86E5CF26', '20101CF85949484FB7BCFB2AE3C88768', '0C86D437B7AB46B2A17B6865000E794B', '037417A18FF6403684886EABBD4D5057', 'C88F465EDEA34CA39868816F4B96B901', '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');
Date: 2026-07-13 18:16:37 Duration: 46s487ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 18s965ms 18s965ms 18s965ms 1 18s965ms select string_agg(distinct prac_checkacct_config (ca.c_acctschema_id, ca."name"), ?) from c_acctschema ca where ? = ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 13 07 1 18s965ms 18s965ms [ User: postgres - Total duration: 18s965ms - Times executed: 1 ]
[ Application: psql - Total duration: 18s965ms - Times executed: 1 ]
-
SELECT string_agg(distinct prac_checkacct_config (ca.c_acctschema_id, ca."name"), ' \n ') from c_acctschema ca where 1 = 1;
Date: 2026-07-13 07:16:52 Duration: 18s965ms Database: etendo User: postgres Remote: [local] Application: psql
3 7s89ms 10s937ms 7s991ms 5 39s958ms select * from m_inout_post0 (?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 13 08 1 10s937ms 10s937ms 17 2 14s341ms 7s170ms 18 2 14s678ms 7s339ms [ User: tad - Total duration: 39s958ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 39s958ms - Times executed: 5 ]
-
SELECT * FROM M_InOut_Post0 ('89A5A7A1B81B427C942BC2AF9E38DC2B');
Date: 2026-07-13 08:42:41 Duration: 10s937ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('55234762820845EFBBC5D4F28E618333');
Date: 2026-07-13 18:30:00 Duration: 7s374ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('6419CBC633C049A3A3D1DA069BD288D7');
Date: 2026-07-13 18:11:31 Duration: 7s303ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 6s991ms 7s864ms 7s431ms 33 4m5s select * from c_order_post (?);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 13 08 1 7s503ms 7s503ms 09 2 15s291ms 7s645ms 10 5 37s752ms 7s550ms 11 10 1m14s 7s498ms 15 3 22s324ms 7s441ms 16 5 35s939ms 7s187ms 17 6 43s888ms 7s314ms 18 1 7s562ms 7s562ms [ User: tad - Total duration: 4m5s - Times executed: 33 ]
[ Application: openbravo - Total duration: 4m5s - Times executed: 33 ]
-
SELECT * FROM C_ORDER_POST ('D0BBBF4DE6774BC891203CECCF4A0D3A');
Date: 2026-07-13 09:25:11 Duration: 7s864ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('04A32F8AE2724BBA8BA95F11E2B15376');
Date: 2026-07-13 15:45:09 Duration: 7s814ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('D117D8ACFDB9404BAA8622E7C15A87C5');
Date: 2026-07-13 11:45:29 Duration: 7s796ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 1s881ms 11s111ms 6s496ms 2 12s992ms select * from ( select ? as rn1, c.* from ( select value, name, dateacct, created, 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, ? as amtacctdrprevsum, ? as amtacctcrprevsum from ( select fact_acct.acctvalue as value, coalesce(ev_trl.name, ev.name) as name, fact_acct.dateacct, amtacctdr, amtacctcr, fact_acct_id, fact_acct_group_id, fact_acct.account_id as id, fact_acct.description, gl.created, case 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 left join c_elementvalue ev on fact_acct.account_id = ev.c_elementvalue_id left join c_elementvalue_trl ev_trl on ev.c_elementvalue_id = ev_trl.c_elementvalue_id and ev_trl.ad_language = ? left join gl_journal gl on fact_acct.record_id = gl.gl_journal_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, d.created having sum(amtacctdr) - sum(amtacctcr) <> ? order by groupbyname, groupbyid, value, name, id, dateacct, created asc nulls first, factaccttype, fact_acct_group_id, fact_acct_id, description, isdebit limit ? offset ?) c) b where ? = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 13 10 2 12s992ms 6s496ms [ User: tad - Total duration: 12s992ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 12s992ms - Times executed: 2 ]
-
SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR - AMTACCTCR), 0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT, 'J') AS DATEACCTNUMBER, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype, 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM ( SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE 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 LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ('Y' = '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 = NULL) and value <= ( select value from c_elementvalue where c_elementvalue_id = NULL) 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('00-00') AND FACT_ACCT.DATEACCT < TO_DATE('01-01-2026') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0) C) B WHERE 1 = 1;
Date: 2026-07-13 10:40:16 Duration: 11s111ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT 0 AS RN1, C.* FROM ( SELECT VALUE, NAME, DATEACCT, CREATED, COALESCE(SUM(AMTACCTDR), 0) AS AMTACCTDR, COALESCE(SUM(AMTACCTCR), 0) AS AMTACCTCR, COALESCE(SUM(AMTACCTDR - AMTACCTCR), 0) AS TOTAL, MAX(FACT_ACCT_ID) AS FACT_ACCT_ID, FACT_ACCT_GROUP_ID, ID, groupbyid, groupbyname, DESCRIPTION, ISDEBIT, 0 AS TOTALACCTDR, 0 AS TOTALACCTCR, 0 AS TOTALACCTSUB, 0 AS PREVIOUSDEBIT, 0 AS PREVIOUSCREDIT, 0 AS PREVIOUSTOTAL, 0 AS FINALDEBIT, 0 AS FINALCREDIT, 0 AS FINALTOTAL, TO_CHAR(DATEACCT, 'J') AS DATEACCTNUMBER, NULL AS groupby, '' as bpid, '' as bpname, '' as pdid, '' as pdname, '' as pjid, '' as pjname, factaccttype, 0 AS AMTACCTDRPREVSUM, 0 AS AMTACCTCRPREVSUM FROM ( SELECT FACT_ACCT.ACCTVALUE AS VALUE, COALESCE(ev_trl.NAME, ev.NAME) AS NAME, FACT_ACCT.DATEACCT, AMTACCTDR, AMTACCTCR, FACT_ACCT_ID, FACT_ACCT_GROUP_ID, FACT_ACCT.ACCOUNT_ID AS ID, FACT_ACCT.DESCRIPTION, GL.CREATED, CASE 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 LEFT JOIN c_elementvalue ev ON FACT_ACCT.ACCOUNT_ID = ev.c_elementvalue_id LEFT JOIN c_elementvalue_trl ev_trl ON ev.c_elementvalue_id = ev_trl.c_elementvalue_id AND ev_trl.ad_language = 'es_ES' LEFT JOIN GL_JOURNAL GL ON FACT_ACCT.RECORD_ID = GL.GL_JOURNAL_ID WHERE ('Y' = '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 = NULL) and value <= ( select value from c_elementvalue where c_elementvalue_id = NULL) 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-01-2025') AND FACT_ACCT.DATEACCT < TO_DATE('01-01-2026') AND FACT_ACCT.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6') AND 2 = 2 AND 3 = 3) D WHERE 6 = 6 GROUP BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, FACTACCTTYPE, FACT_ACCT_GROUP_ID, DESCRIPTION, ISDEBIT, D.CREATED HAVING SUM(AMTACCTDR) - SUM(AMTACCTCR) <> 0 ORDER BY groupbyname, groupbyid, VALUE, NAME, ID, DATEACCT, CREATED ASC NULLS FIRST, FACTACCTTYPE, FACT_ACCT_GROUP_ID, FACT_ACCT_ID, DESCRIPTION, ISDEBIT LIMIT 200 OFFSET 0) C) B WHERE 1 = 1;
Date: 2026-07-13 10:40:01 Duration: 1s881ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 2s617ms 3s612ms 3s37ms 54 2m44s select productsto0_.m_product_stock_v_id as m_produc1_573_, productsto0_.ad_client_id as ad_clien2_573_, productsto0_.ad_org_id as ad_org_i3_573_, productsto0_.isactive as isactive4_573_, productsto0_.created as created5_573_, productsto0_.createdby as createdb6_573_, productsto0_.updated as updated7_573_, productsto0_.updatedby as updatedb8_573_, productsto0_.m_product_id as m_produc9_573_, productsto0_.qtyonhand as qtyonha10_573_, productsto0_.qtyorderonhand as qtyorde11_573_, productsto0_.preqtyonhand as preqtyo12_573_, productsto0_.preqtyorderonhand as preqtyo13_573_, productsto0_.c_uom_id as c_uom_i14_573_, productsto0_.m_product_uom_id as m_produ15_573_, productsto0_.m_attributesetinstance_id as m_attri16_573_, productsto0_.m_locator_id as m_locat17_573_, productsto0_.stocked as stocked18_573_, productsto0_.m_warehouse_id as m_wareh19_573_, productsto0_.m_refinventory_id as m_refin20_573_ from m_product_stock_v productsto0_ left outer join m_product product1_ on productsto0_.m_product_id = product1_.m_product_id where (upper(product1_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper(product1_.upc) like upper(?) escape ? or upper(coalesce(to_char((product1_.value || ?| | coalesce(to_char(( select producttrl2_.name from m_product_trl producttrl2_ where producttrl2_.m_product_id = product1_.m_product_id and producttrl2_.ad_language = ?)), to_char(product1_.name), ?))), ?)) like upper(?) escape ?) and (productsto0_.ad_org_id in (...)) and productsto0_.isactive = ? and ((? in (...)) and product1_.production = ? and productsto0_.stocked = ? or (? in (...)) and product1_.production = ? or (? in (...)) and product1_.isstocked = ? or (? in (...)) and product1_.ispurchased = ? or (? in (...)) and (productsto0_.m_warehouse_id is null or productsto0_.m_warehouse_id in ( select organizati7_.m_warehouse_id from ad_org_warehouse organizati7_ where organizati7_.ad_org_id = ?)) or ? not in (...)) and (productsto0_.ad_client_id in (...)) and productsto0_.isactive = ? order by product1_.value, product1_.name, product1_.m_product_id limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 13 08 54 2m44s 3s37ms [ User: tad - Total duration: 2m44s - Times executed: 54 ]
[ Application: openbravo - Total duration: 2m44s - Times executed: 54 ]
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%4243%') escape '|' or upper(product1_.Value) like upper('%4243%') escape '|' or upper(product1_.UPC) like upper('%4243%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%4243%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:21:03 Duration: 3s612ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%70192000%') escape '|' or upper(product1_.Value) like upper('%70192000%') escape '|' or upper(product1_.UPC) like upper('%70192000%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%70192000%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:28:30 Duration: 3s511ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productsto0_.M_Product_Stock_V_ID as m_produc1_573_, productsto0_.AD_Client_ID as ad_clien2_573_, productsto0_.AD_Org_ID as ad_org_i3_573_, productsto0_.Isactive as isactive4_573_, productsto0_.Created as created5_573_, productsto0_.Createdby as createdb6_573_, productsto0_.Updated as updated7_573_, productsto0_.Updatedby as updatedb8_573_, productsto0_.M_Product_ID as m_produc9_573_, productsto0_.Qtyonhand as qtyonha10_573_, productsto0_.Qtyorderonhand as qtyorde11_573_, productsto0_.Preqtyonhand as preqtyo12_573_, productsto0_.Preqtyorderonhand as preqtyo13_573_, productsto0_.C_Uom_ID as c_uom_i14_573_, productsto0_.M_Product_Uom_ID as m_produ15_573_, productsto0_.M_Attributesetinstance_ID as m_attri16_573_, productsto0_.M_Locator_ID as m_locat17_573_, productsto0_.Stocked as stocked18_573_, productsto0_.M_Warehouse_ID as m_wareh19_573_, productsto0_.M_Refinventory_ID as m_refin20_573_ from M_Product_Stock_V productsto0_ left outer join M_Product product1_ on productsto0_.M_Product_ID = product1_.M_Product_ID where (upper(product1_.Name) like upper('%70192000%') escape '|' or upper(product1_.Value) like upper('%70192000%') escape '|' or upper(product1_.UPC) like upper('%70192000%') escape '|' or upper(coalesce(to_char((product1_.Value || ' - ' || coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), ''))), '')) like upper('%70192000%') escape '|') and (productsto0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and productsto0_.Isactive = 'Y' and (('184' in ('800051', '800052', '800096')) and product1_.Production = 'Y' and productsto0_.Stocked = 'N' or ('184' in ('800053', 'FF808181323E504701323E57E08D0017')) and product1_.Production = 'Y' or ('184' in ('170')) and product1_.IsStocked = 'Y' or ('184' in ('800092')) and product1_.IsPurchased = 'Y' or ('184' in ('169')) and (productsto0_.M_Warehouse_ID is null or productsto0_.M_Warehouse_ID in ( select organizati7_.M_Warehouse_ID from AD_Org_Warehouse organizati7_ where organizati7_.AD_Org_ID = 'FF80818133B7413E0133B71974AD28C6')) or '184' not in ('800051', '800052', '800053', 'FF808181323E504701323E57E08D0017', '800096', '170', '800092', '169')) and (productsto0_.AD_Client_ID in ('FF80818133B7413E0133B7164D6A0002', '0')) and productsto0_.Isactive = 'Y' order by product1_.Value, product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-13 08:28:53 Duration: 3s449ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 2s70ms 2s268ms 2s192ms 4 8s770ms 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 ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 13 11 3 6s699ms 2s233ms 12 1 2s70ms 2s70ms [ User: tad - Total duration: 8s770ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s770ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/37%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:12 Duration: 2s268ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/3748%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:13 Duration: 2s239ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') 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/374%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' 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-13 11:45:13 Duration: 2s190ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 2s176ms 2s176ms 2s176ms 1 2s176ms 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 #8
Day Hour Count Duration Avg duration Jul 13 11 1 2s176ms 2s176ms [ User: tad - Total duration: 2s176ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s176ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF', 'B24F6F467301476397A54E42AA9429AE', 'A8D45589660E46B3A358E73E3E941569') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%B24F6F467301476397A54E42AA9429AE%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A8D45589660E46B3A358E73E3E941569%') 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/3541%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B24F6F467301476397A54E42AA9429AE%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A8D45589660E46B3A358E73E3E941569%' 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-13 11:45:54 Duration: 2s176ms 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF', 'B24F6F467301476397A54E42AA9429AE', 'A8D45589660E46B3A358E73E3E941569') 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( 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($19) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%B24F6F467301476397A54E42AA9429AE%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A8D45589660E46B3A358E73E3E941569%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $20;
Date: 2026-07-13 11:45:53 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
9 2s26ms 2s242ms 2s155ms 3 6s467ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 13 11 2 4s440ms 2s220ms 12 1 2s26ms 2s26ms [ User: tad - Total duration: 6s467ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s467ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') 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/354%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' 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-13 11:45:27 Duration: 2s242ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC', '064C2FF19F5E460CAACD8F8E10DF5055', '10390F4782CE40D9A4F2CAD18DA97DFF') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%064C2FF19F5E460CAACD8F8E10DF5055%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%10390F4782CE40D9A4F2CAD18DA97DFF%') 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/3540%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%064C2FF19F5E460CAACD8F8E10DF5055%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%10390F4782CE40D9A4F2CAD18DA97DFF%' 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-13 11:45:28 Duration: 2s197ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6', '14AEF17D0E1B47B19CCFDDDA0746FBB3', 'C4910B159C0D44519A5065EABA82046D', '5EE63F79A3E4466AADBC54B36A9B018B') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%14AEF17D0E1B47B19CCFDDDA0746FBB3%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%C4910B159C0D44519A5065EABA82046D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%5EE63F79A3E4466AADBC54B36A9B018B%') 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/3548%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%14AEF17D0E1B47B19CCFDDDA0746FBB3%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%C4910B159C0D44519A5065EABA82046D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%5EE63F79A3E4466AADBC54B36A9B018B%' 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-13 12:02:23 Duration: 2s26ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 2s133ms 2s142ms 2s138ms 3 6s416ms 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 #10
Day Hour Count Duration Avg duration Jul 13 11 1 2s142ms 2s142ms 12 2 4s274ms 2s137ms [ User: tad - Total duration: 6s416ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s416ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') 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/3536%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' 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-13 11:44:37 Duration: 2s142ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') 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/3543%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' 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-13 12:01:17 Duration: 2s140ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') 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/354%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' 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-13 12:01:16 Duration: 2s133ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 1s995ms 2s292ms 2s108ms 19 40s56ms 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 #11
Day Hour Count Duration Avg duration Jul 13 11 18 38s4ms 2s111ms 12 1 2s51ms 2s51ms [ User: tad - Total duration: 40s56ms - Times executed: 19 ]
[ Application: openbravo - Total duration: 40s56ms - Times executed: 19 ]
-
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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26/3%') 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-13 11:48:06 Duration: 2s292ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26%') 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-13 11:48:04 Duration: 2s251ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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('%26/3752%') 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-13 11:48:07 Duration: 2s250ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 2s28ms 2s162ms 2s81ms 3 6s245ms 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 #12
Day Hour Count Duration Avg duration Jul 13 11 3 6s245ms 2s81ms [ User: tad - Total duration: 6s245ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s245ms - 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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-13 11:44:00 Duration: 2s162ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:47:57 Duration: 2s55ms 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 = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:54:46 Duration: 2s28ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 2s73ms 2s85ms 2s79ms 2 4s159ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 13 11 1 2s73ms 2s73ms 12 1 2s85ms 2s85ms [ User: tad - Total duration: 4s159ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s159ms - Times executed: 2 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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 ('FA81618D8FBB414FB40E08B4A399E9BA', 'D669630BB72C438792C0E4E2B6422DD6', '14AEF17D0E1B47B19CCFDDDA0746FBB3') 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('%FA81618D8FBB414FB40E08B4A399E9BA%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D669630BB72C438792C0E4E2B6422DD6%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%14AEF17D0E1B47B19CCFDDDA0746FBB3%') 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/3544%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FA81618D8FBB414FB40E08B4A399E9BA%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D669630BB72C438792C0E4E2B6422DD6%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%14AEF17D0E1B47B19CCFDDDA0746FBB3%' 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-13 12:01:57 Duration: 2s85ms 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC') 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('%50080F2CF848449A9C272C07D8160B7E%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%55A0EACA93BC462BBA6A8D447CD477F9%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%6E2FFA092E7240909F4CA068A9CD8DAC%') 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/3539%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' 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-13 11:44:53 Duration: 2s73ms 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 ('50080F2CF848449A9C272C07D8160B7E', '55A0EACA93BC462BBA6A8D447CD477F9', '6E2FFA092E7240909F4CA068A9CD8DAC') 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 '%50080F2CF848449A9C272C07D8160B7E%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%55A0EACA93BC462BBA6A8D447CD477F9%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%6E2FFA092E7240909F4CA068A9CD8DAC%' 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-13 11:44:52 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
14 1s750ms 2s170ms 1s901ms 3 5s705ms 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 ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 13 11 3 5s705ms 1s901ms [ User: tad - Total duration: 5s705ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s705ms - 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 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 = '85C76D71726F489B9AEE39AEFB04E4FF') 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-13 11:43:55 Duration: 2s170ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:47:54 Duration: 1s784ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'ACF014F49CE24C4EA1124C9EC2924072') 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-13 11:54:43 Duration: 1s750ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 1s265ms 1s286ms 1s276ms 2 2s552ms 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 13 08 1 1s265ms 1s265ms 09 1 1s286ms 1s286ms [ User: tad - Total duration: 2s552ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 2s552ms - Times executed: 2 ]
-
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('%KV300R7%') or upper(product1_.Value) like upper('%KV300R7%') or upper(product1_.Name) like upper('%KV300R7%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-13 09:28:40 Duration: 1s286ms 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('%osram%') or upper(product1_.Value) like upper('%osram%') or upper(product1_.Name) like upper('%osram%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-13 08:45:29 Duration: 1s265ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 1s151ms 1s420ms 1s232ms 7 8s624ms delete from m_product where m_product_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 13 12 7 8s624ms 1s232ms [ User: tad - Total duration: 8s624ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 8s624ms - Times executed: 7 ]
-
delete from M_Product where M_Product_ID = 'EF64B5FA385B4445ABC086484366CE83';
Date: 2026-07-13 12:32:41 Duration: 1s420ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = '8AF3D0B620844616872A1EAD6D48088B';
Date: 2026-07-13 12:33:19 Duration: 1s254ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
delete from M_Product where M_Product_ID = '06D12F162D8343F3837E7A1CAB5D364B';
Date: 2026-07-13 12:36:41 Duration: 1s243ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 1s95ms 1s304ms 1s188ms 15 17s830ms 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 #17
Day Hour Count Duration Avg duration Jul 13 07 1 1s190ms 1s190ms 08 1 1s159ms 1s159ms 09 1 1s237ms 1s237ms 10 1 1s121ms 1s121ms 11 1 1s174ms 1s174ms 12 1 1s165ms 1s165ms 13 1 1s222ms 1s222ms 14 1 1s184ms 1s184ms 15 1 1s229ms 1s229ms 16 1 1s95ms 1s95ms 17 1 1s304ms 1s304ms 18 1 1s167ms 1s167ms 19 1 1s183ms 1s183ms 20 1 1s151ms 1s151ms 21 1 1s242ms 1s242ms [ User: tad - Total duration: 17s830ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 17s830ms - 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-13 17:00:01 Duration: 1s304ms 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-13 21:00:01 Duration: 1s242ms 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-13 09:00:01 Duration: 1s237ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 1s 2s377ms 1s55ms 56 59s127ms 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 13 07 2 3s379ms 1s689ms 08 36 37s177ms 1s32ms 12 8 8s278ms 1s34ms 17 10 10s292ms 1s29ms [ User: tad - Total duration: 59s127ms - Times executed: 56 ]
[ Application: openbravo - Total duration: 59s127ms - Times executed: 56 ]
-
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 = '037417A18FF6403684886EABBD4D5057';
Date: 2026-07-13 07:42:34 Duration: 2s377ms 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 = 'ECA5FA40027D4774A963617F20A182F0';
Date: 2026-07-13 08:11:38 Duration: 1s135ms 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 = '239264DBCFF1420D9D42E9DB86E5CF26';
Date: 2026-07-13 12:19:29 Duration: 1s103ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 1s9ms 1s97ms 1s45ms 6 6s270ms 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 #19
Day Hour Count Duration Avg duration Jul 13 09 1 1s9ms 1s9ms 11 1 1s14ms 1s14ms 15 1 1s97ms 1s97ms 17 1 1s43ms 1s43ms 18 1 1s43ms 1s43ms 19 1 1s63ms 1s63ms [ User: tad - Total duration: 6s270ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 6s270ms - Times executed: 6 ]
-
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-13 15:00:01 Duration: 1s97ms 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-13 19:00:01 Duration: 1s63ms 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-13 18:00:01 Duration: 1s43ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 1s2ms 1s67ms 1s34ms 2 2s69ms 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 #20
Day Hour Count Duration Avg duration Jul 13 12 2 2s69ms 1s34ms [ User: tad - Total duration: 2s69ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 2s69ms - Times executed: 2 ]
-
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('%EMMS%') 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-13 12:34:00 Duration: 1s67ms 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('%EM%') 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-13 12:32:23 Duration: 1s2ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 18,185 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
- 78 ERROR entries
- 0 WARNING entries
- 0 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 55 Max number of times the same event was reported
- 78 Total events found
Rank Times reported Error 1 55 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 13 08 50 17 5 - 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-13 08:30:00 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-13 08:30:00 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-13 08:30:00 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
2 11 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 13 08 10 17 1 - 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-13 08:30:00 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-13 08:30:22 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-13 08:30:53 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
3 5 ERROR: @APRM_JSAMOUNTDIFFTOZERO@
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 13 15 1 16 4 - ERROR: @APRM_JSAMOUNTDIFFTOZERO@
- ERROR: @APRM_JSAMOUNTDIFFTOZERO@
- ERROR: @APRM_JSAMOUNTDIFFTOZERO@
Context: PL/pgSQL function gl_journalline_trg() line 67 at RAISE
Statement: insert into GL_JournalLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, GL_Journal_ID, Line, IsGenerated, Description, AmtSourceDr, AmtSourceCr, C_Currency_ID, CurrencyRateType, CurrencyRate, AmtAcctDr, AmtAcctCr, C_UOM_ID, C_ValidCombination_ID, Open_Items, EM_Aprm_Addpayment, GL_JournalLine_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23)Date: 2026-07-13 15:52:06 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function gl_journalline_trg() line 67 at RAISE
Statement: insert into GL_JournalLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, GL_Journal_ID, Line, IsGenerated, Description, AmtSourceDr, AmtSourceCr, C_Currency_ID, CurrencyRateType, CurrencyRate, AmtAcctDr, AmtAcctCr, C_UOM_ID, C_ValidCombination_ID, Open_Items, EM_Aprm_Addpayment, GL_JournalLine_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23)Date: 2026-07-13 16:02:05 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function gl_journalline_trg() line 67 at RAISE
Statement: insert into GL_JournalLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, GL_Journal_ID, Line, IsGenerated, Description, AmtSourceDr, AmtSourceCr, C_Currency_ID, CurrencyRateType, CurrencyRate, AmtAcctDr, AmtAcctCr, C_UOM_ID, C_ValidCombination_ID, Open_Items, EM_Aprm_Addpayment, GL_JournalLine_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23)Date: 2026-07-13 16:02:32 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
4 3 ERROR: @CannotDeletePermanentCost@
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 13 12 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-13 12:37:48 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-13 12:45:26 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-13 12:47:23 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
5 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 13 12 1 - ERROR: duplicate key value violates unique constraint "m_productprice_pricelist_ve_un"
Detail: Key (m_pricelist_version_id, m_product_id)=(FF80818134057575013437B0DD61026B, FB028C6EE0624E49AFCC609B1CDAB6A4) already exists.
Statement: insert into M_ProductPrice (M_PriceList_Version_ID, M_Product_ID, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, PriceList, PriceStd, PriceLimit, Cost, Algorithm, EM_Pruti_Inheritprice, EM_Pruti_Export_Prices, M_ProductPrice_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17)Date: 2026-07-13 12:18:12 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
6 1 ERROR: @GLJournalDocumentPosted@
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 13 11 1 - ERROR: @GLJournalDocumentPosted@
Context: PL/pgSQL function gl_journal_post(character varying,character varying) line 360 at RAISE
Statement: SELECT gl_journal_post($1,$2) AS RESULT FROM DUALDate: 2026-07-13 11:19:20 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
7 1 ERROR: new row for relation "..." violates check constraint "..."
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 13 12 1 - ERROR: new row for relation "fin_finacc_transaction" violates check constraint "fin_trans_amounts_chk"
Detail: Failing row contains (610B295092D24AEBAEC26895476FAED8, FF80818133B7413E0133B7164D6A0002, FF80818133B7413E0133B71974AD28C6, 2026-07-13 12:43:15.603, FF80818134057575013433F1BAD70131, 2026-07-13 12:43:15.603, FF80818134057575013433F1BAD70131, Y, 102, FF8081813446E6520134A7ED250506A3, 568220, null, 2025-12-31 00:00:00, FF80818134C1BCE70134C4A7177D0C2F, RPAP, 0, 0, N, N, N, null, null, null, null, null, BPW, 2025-12-31 00:00:00, Conceptos Contables: 6290000 ITV, null, N, null, null, null, null, null, null, null, P, null, null, N, N, N, N).
Statement: insert into FIN_Finacc_Transaction (AD_Client_ID, AD_Org_ID, Created, Createdby, Updated, Updatedby, Isactive, C_Currency_ID, Fin_Financial_Account_ID, Line, DateAcct, C_Glitem_ID, Status, Paymentamt, Depositamt, Processed, Processing, Posted, Trxtype, Statementdate, Description, CreatedByAlgorithm, EM_Etpr_Remove_Transaction, EM_Aprm_Processed, EM_Etblkp_Accountingstatus, EM_Etblkp_Bulkposting, EM_Etpr_Reactivate_Transaction, Fin_Finacc_Transaction_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28)Date: 2026-07-13 12:43:15 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
8 1 ERROR: @GLJournalHasNoLines@ 1001029
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 13 16 1 - ERROR: @GLJournalHasNoLines@ 1001029
Context: PL/pgSQL function gl_journal_post(character varying,character varying) line 360 at RAISE
Statement: SELECT gl_journal_post($1,$2) AS RESULT FROM DUALDate: 2026-07-13 16:42:14 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1