-
Global information
- Generated on Fri Jul 17 23:00:08 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 33,825 log entries in 6s
- Log start from 2026-07-17 07:00:01 to 2026-07-17 21:59:44
-
Overview
Global Stats
- 32 Number of unique normalized queries
- 184 Number of queries
- 14m37s Total query duration
- 2026-07-17 07:00:01 First query
- 2026-07-17 21:00:01 Last query
- 2 queries/s at 2026-07-17 10:00:01 Query peak
- 14m37s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 14m37s Execute total duration
- 3 Number of events
- 3 Number of unique normalized events
- 1 Max number of times the same event was reported
- 0 Number of cancellation
- 137 Total number of automatic vacuums
- 222 Total number of automatic analyzes
- 1,172 Number temporary file
- 46.52 MiB Max size of temporary file
- 16.21 MiB Average size of temporary file
- 3,295 Total number of sessions
- 6 sessions at 2026-07-17 21:00:01 Session peak
- 2d22h56m48s Total duration of sessions
- 1m17s Average duration of sessions
- 0 Average queries per session
- 266ms Average queries duration per session
- 1m17s Average idle time per session
- 3,293 Total number of connections
- 7 connections/s at 2026-07-17 10:00:01 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-17 10:00:01 Date
SELECT Traffic
Key values
- 2 queries/s Query Peak
- 2026-07-17 10:00:01 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 1 queries/s Query Peak
- 2026-07-17 10:37:13 Date
Queries duration
Key values
- 14m37s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 07 2 0ms 1s206ms 1s123ms 0ms 0ms 2s246ms 08 6 0ms 48s271ms 18s473ms 0ms 1s515ms 1m35s 09 36 0ms 7s287ms 3s457ms 7s221ms 12s953ms 18s461ms 10 31 0ms 7s392ms 3s990ms 7s305ms 14s161ms 15s377ms 11 17 0ms 7s318ms 6s49ms 7s194ms 7s307ms 14s51ms 12 13 0ms 7s459ms 6s204ms 6s981ms 7s152ms 14s733ms 13 20 0ms 7s175ms 2s528ms 1s911ms 7s175ms 17s199ms 14 2 0ms 3s292ms 2s188ms 0ms 0ms 3s292ms 15 7 0ms 7s315ms 3s692ms 0ms 7s91ms 7s315ms 16 14 0ms 7s152ms 6s544ms 7s9ms 7s92ms 7s152ms 17 29 0ms 7s431ms 4s618ms 8s55ms 9s709ms 14s343ms 18 4 0ms 7s320ms 5s673ms 0ms 6s982ms 7s320ms 19 1 0ms 1s167ms 1s167ms 0ms 0ms 1s167ms 20 1 0ms 1s101ms 1s101ms 0ms 0ms 1s101ms 21 1 0ms 1s192ms 1s192ms 0ms 0ms 1s192ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 07 2 0 1s123ms 0ms 0ms 0ms 08 6 0 18s473ms 0ms 0ms 11s205ms 09 35 0 3s443ms 6s954ms 7s221ms 14s121ms 10 30 0 4s22ms 7s177ms 7s281ms 14s288ms 11 17 0 6s49ms 6s955ms 7s194ms 7s318ms 12 13 0 6s204ms 1s176ms 6s981ms 7s225ms 13 20 0 2s528ms 0ms 1s911ms 9s936ms 14 2 0 2s188ms 0ms 0ms 1s84ms 15 7 0 3s692ms 0ms 0ms 7s164ms 16 14 0 6s544ms 6s814ms 7s9ms 7s105ms 17 29 0 4s618ms 6s931ms 8s55ms 13s874ms 18 4 0 5s673ms 0ms 0ms 7s258ms 19 1 0 1s167ms 0ms 0ms 0ms 20 1 0 1s101ms 0ms 0ms 0ms 21 1 0 1s192ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 1 0 0 3s951ms 0ms 0ms 0ms 10 0 0 1 0 3s38ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 17 07 0 2 2.00 0.00% 08 0 6 6.00 0.00% 09 0 36 36.00 0.00% 10 0 31 31.00 0.00% 11 0 17 17.00 0.00% 12 0 13 13.00 0.00% 13 0 20 20.00 0.00% 14 0 2 2.00 0.00% 15 0 7 7.00 0.00% 16 0 14 14.00 0.00% 17 0 29 29.00 0.00% 18 0 4 4.00 0.00% 19 0 1 1.00 0.00% 20 0 1 1.00 0.00% 21 0 1 1.00 0.00% Day Hour Count Average / Second Jul 17 07 217 0.06/s 08 219 0.06/s 09 222 0.06/s 10 221 0.06/s 11 225 0.06/s 12 218 0.06/s 13 220 0.06/s 14 218 0.06/s 15 219 0.06/s 16 218 0.06/s 17 222 0.06/s 18 217 0.06/s 19 219 0.06/s 20 217 0.06/s 21 221 0.06/s Day Hour Count Average Duration Average idle time Jul 17 07 219 1m3s 1m3s 08 219 27s65ms 26s558ms 09 222 1m48s 1m47s 10 221 3m1s 3m 11 225 1m31s 1m30s 12 218 5s98ms 4s728ms 13 220 41s934ms 41s704ms 14 218 701ms 681ms 15 219 1m55s 1m55s 16 218 31s527ms 31s107ms 17 222 4m25s 4m25s 18 217 20ms 0ms 19 219 2m 2m 20 217 18ms 13ms 21 221 1m42s 1m42s -
Connections
Established Connections
Key values
- 7 connections Connection Peak
- 2026-07-17 10:00:01 Date
Connections per database
Key values
- etendo Main Database
- 3,293 connections Total
Connections per user
Key values
- tad Main User
- 3,293 connections Total
-
Sessions
Simultaneous sessions
Key values
- 6 sessions Session Peak
- 2026-07-17 21:00:01 Date
Histogram of session times
Key values
- 3,238 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 3,295 sessions Total
Sessions per user
Key values
- tad Main User
- 3,295 sessions Total
Sessions per host
Key values
- 127.0.0.1 Main Host
- 3,295 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 30,695 buffers Checkpoint Peak
- 2026-07-17 18:02:41 Date
- 270.008 seconds Highest write time
- 0.203 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-07-17 12:56:17 Date
Checkpoints distance
Key values
- 74.81 Mo Distance Peak
- 2026-07-17 13:07:35 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 17 07 12,186 1,209.275s 0.011s 1,209.297s 08 20,341 2,029.086s 0.218s 2,029.327s 09 18,402 1,741.401s 0.017s 1,741.442s 10 19,483 1,945.039s 0.013s 1,945.074s 11 19,220 1,799.203s 0.016s 1,799.362s 12 21,007 2,096.485s 0.021s 2,096.536s 13 21,804 1,967.421s 0.017s 1,967.456s 14 19,782 1,976.074s 0.016s 1,976.114s 15 17,365 1,604.23s 0.015s 1,604.263s 16 22,995 2,295.455s 0.02s 2,295.501s 17 21,312 1,940.735s 0.014s 1,940.77s 18 48,128 2,011.649s 0.016s 2,011.682s 19 14,873 1,424.652s 0.009s 1,424.671s 20 14,884 1,487.763s 0.01s 1,487.786s 21 14,737 1,422.055s 0.008s 1,422.074s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 17 07 0 6 0 395 0.001s 0.011s 08 0 9 0 2,099 0.202s 0.014s 09 0 9 0 2,089 0.001s 0.011s 10 0 9 0 2,154 0.001s 0.012s 11 0 9 0 2,179 0.001s 0.011s 12 0 10 0 2,197 0.006s 0.012s 13 0 10 0 1,784 0.001s 0.012s 14 0 9 0 1,440 0.001s 0.013s 15 0 8 0 1,451 0.001s 0.011s 16 0 10 0 2,264 0.001s 0.012s 17 0 10 0 2,028 0.001s 0.011s 18 0 8 0 1,173 0.001s 0.013s 19 0 6 0 416 0.001s 0.009s 20 0 7 0 409 0.001s 0.01s 21 0 6 0 372 0.001s 0.008s Day Hour Count Avg time (sec) Jul 17 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s Day Hour Mean distance Mean estimate Jul 17 07 8,892.36 kB 181,418.09 kB 08 12,040.46 kB 59,979.00 kB 09 13,056.55 kB 26,179.27 kB 10 11,690.92 kB 16,989.46 kB 11 13,259.55 kB 23,624.91 kB 12 13,046.42 kB 17,255.42 kB 13 14,138.83 kB 27,583.17 kB 14 11,159.23 kB 17,066.23 kB 15 11,810.00 kB 23,315.55 kB 16 12,991.38 kB 17,848.62 kB 17 14,009.55 kB 26,320.00 kB 18 10,500.15 kB 18,684.08 kB 19 11,312.44 kB 20,662.56 kB 20 10,501.10 kB 14,314.20 kB 21 13,403.62 kB 20,991.38 kB -
Temporary Files
Size of temporary files
Key values
- 546.29 MiB Temp Files size Peak
- 2026-07-17 09:15:09 Date
Number of temporary files
Key values
- 28 per second Temp Files Peak
- 2026-07-17 09:15:09 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 17 07 2 22.72 MiB 11.36 MiB 08 215 808.74 MiB 3.76 MiB 09 368 7.61 GiB 21.19 MiB 10 44 930.32 MiB 21.14 MiB 11 26 708.82 MiB 27.26 MiB 12 13 534.39 MiB 41.11 MiB 13 276 5.59 GiB 20.74 MiB 14 34 134.47 MiB 3.95 MiB 15 79 420.69 MiB 5.33 MiB 16 35 697.27 MiB 19.92 MiB 17 69 988.09 MiB 14.32 MiB 18 5 162.27 MiB 32.45 MiB 19 2 22.72 MiB 11.36 MiB 20 2 22.72 MiB 11.36 MiB 21 2 22.72 MiB 11.36 MiB Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 208 726.25 MiB 3.27 MiB 3.72 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 = '685E20C464B647FCB1477E28DCB06253';
Date: 2026-07-17 08:30:53 Duration: 1s515ms 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 = '038AF2FA2F04427CAED332404A60E870';
Date: 2026-07-17 11:58:55 Duration: 1s80ms 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 = '6C836A724E2C46D6BEC5A17CBF060CD7';
Date: 2026-07-17 15:15:07 Duration: 1s50ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 200 697.66 MiB 3.27 MiB 3.71 MiB 3.49 MiB select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id 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 ('66EB72FBDE684A0B890AF7D9CB2A2DE7', '67051C047BA843309AA9A2227E8ECAE4', '67111F086D4F470F9F6B39EB8929ADB3', '6718EA2D30384CDFA6E11373D0F437C2', '673505CF709B49808893B733232E0B2A', '67358E582A4D4620BC1871D0F397426E', '675E28CDC6794D8B95063BE0D76B16C0', '67605D57F59D438EACE18AA657713AD0', '67892B26278040198E52A9A472081759', '6797C4515DA3493F97DC66A8AFC3A0EC', '67AA88876EE24D3B8F1392A2C575E8CA', '67B40C1D72134503943050E180D888AB', '67DBDA4AF67842A5A0C312F786EDEDFE', '67DD2A95F6E84668938D70DB9A35B4FB', '67F3EC12C1DF4789BBED8EFE7AD33D40', '680C40EC7C124803BF699887E7EA5EC4', '6826592F3B694C8B82ED5197396A643D', '68323800ADBA4B37BFA70B97EB4BF89D', '683CF511380A49AC920E319292A4E9A9', '684EB55FFC3C42AEBE2CACD867197036', '685E20C464B647FCB1477E28DCB06253', '688F044CB9234AEFB24CC2032DE129C4', '68B08AED38CE41E3A956E5B116062692', '68D3594DFD1A447A85BB59CEE4904B55', '68F84AEF03B44EE8B7745AB3BBEB3627', '68FDF75F502E4E0ABF4A4AD15B7EBB0B', '6909D929D3074FF89613C7253DDB1BF4', '690BBADA8F604FB391ECA9E265090A9C', '69157E3ABF434392BE2286E96D64DA33', '6915E3AD0DF44399BD3D119E284CC652', '691920D92A0F44759E5217286F45A2F2', '691BB531C31C440480EC243898CEC977', '6928DA7BF84D4925B53A484CAFF8D7E7', '69296FFF69FD48B3A0490F1C6F31CE20', '695BB35110224AEB997FD38663953F32', '6970A3FBF7784640A1C5BA4587A67CB0', '6976A199A1564B498C542C13E3DCBA2C', '6983AEDE07634DD5B22AAB487C235538', '699151A791CD4DEE802FCC694DD8D4FD', '69AD96A007234C77B9CC55E5BBA9711E', '69BF5552F27345A2A503EF15E62C9F06', '69D395B3B9E74AF3B55092DCBC03D8E7', '69E53ECC3AFA43ACAC1A18065C0033DE', '69EFB25DE72C4726904F489B0204234A', '69F26672AA0E458EB59E3451C12B2D4B', '69F55BFBC91044B1B48BC26D1B75939D', '69FC9C3B1FEF49E78580F1EEA338F85D', '69FE46DE1AF34FAC9730CD830EA925FF', '6A158EB06CF444BBAB863535BF002333', '6A3ECF3DF3074BC1B150811D0E72DEAD');
Date: 2026-07-17 08:44:01 Duration: 48s271ms 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 ('6A537614D3214988A776CBD409DC4288', '6A57EC991B2847858EF98F9802A19EA2', '6A582E873F7F4C47A9213F9113519CA0', '6A5DC9754B824A08B3116FAC4262EA8D', '6A74347EA56245C38EFA8BE882F0CF9C', '6A7824EFB02C4519BDF5982B238755E3', '6A85C67CA628479C99377BCFE45C536A', '6A899EA0726C4871B52949321113DA20', '6A9C53B78D774FD8AEB6A57AD3378A00', '6AAC398A3D1A4E198B72DBDF060C5991', '6AEF5D0F9D9D40E994AD2365DF980413', '6AFDC7F9C7174A48A24E3B73AD715F53', '6AFF8BFA550F47A29D93CBF50B31D24F', '6B019FD442EB42ED80B4B1D2EF6F7912', '6B12B74603C64B848C5D56A06497A3C5', '6B1DE3634ACD46D5B7AB660884EDBEC8', '6B2C7D02B5024B2AAE397A312EA6753E', '6B308708E9F24B7C9BC101F422051F3F', '6B3E051AE400441BA3F9A8EEFC94DCC1', '6B465D6E04A1442D81F494DFC7042F49', '6B5B2FD85E554AF68CA81A76A9C5DD39', '6B5D693551AB4828933DE19C2A885204', '6B602361E0334F5CBFA50795D3340522', '6B6E856F4E574A81BE6D97AE39441090', '6B8792B0D824469DB26897B08A4FE202', '6B8CBDF9D2FC4DA0A232D4429D46614C', '6B8ED7438D454B4DAF61D28908B1A420', '6B918DB3C24044738F347579A741868B', '6B9C1B8AE0974618AC0A4B1D985FDBE4', '6B9D3DACBCEB43FEA0E98694D2156FF7', '6BD4E51F3F964583A1CAA4F3DE3B0B51', '6BD86FACBF2A4261AA83E19A8A8CF27F', '6BD8B4C1864E49CAB2D72F6781D62E7D', '6BD8DBB1BF9F45F983F0A01FDC0F857C', '6BEC20EB8F7040F88F5A8E18AD264BF6', '6BF2F910CA9E456BB9B7C49C847F8730', '6BF3696D82D24199975535B29B7C5434', '6C0959DE4D1040D594E03789ED85F8D6', '6C133105819642AE91B089F6506EC606', '6C31C3A2D22D4E4292A3092E1CE8723B', '6C3B30D3FE8E4E279F3634743D8D22A8', '6C4091F3737548BD8A1DECC332EEE0CC', '6C439FD71FE249A2A091B60FE765B176', '6C4B1E9448A5423AAAB3A24A92F7BA3D', '6C5F8A3717C44C5984D86206C44C94A8', '6C6B2ABA2F6E409282C221BBE19A3864', '6C741B5BFD41417D9366DCF1B323E500', '6C77398F2D264E16BF0D2785286CD811', '6C78892DB2DB4905BE756D03086F40DE', '6C7B84CB058641A0AE154BBC9C674309');
Date: 2026-07-17 08:44:48 Duration: 47s541ms 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 ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50);
Date: 2026-07-17 08:43:14 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
3 128 2.58 GiB 12.91 MiB 45.06 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%3%') 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-17 13:43:30 Duration: 2s840ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/%') 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-17 09:14:33 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%3590%') 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-17 13:43:30 Duration: 2s19ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
4 80 1.61 GiB 12.91 MiB 45.06 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/385%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:52 Duration: 2s209ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/3857%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:53 Duration: 2s165ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/38%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:52 Duration: 2s86ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 64 1.29 GiB 12.91 MiB 45.06 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/35%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:09 Duration: 2s282ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/359%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:10 Duration: 2s254ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') 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/3595%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:10 Duration: 2s209ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
6 64 1.29 GiB 12.91 MiB 45.06 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ? offset ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '200';
Date: 2026-07-17 13:43:29 Duration: 2s158ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-17 13:43:26 Duration: 2s66ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-17 09:14:31 Duration: 2s40ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
7 63 2.86 GiB 46.51 MiB 46.52 MiB 46.52 MiB select * from c_order_post (?);-
SELECT * FROM C_ORDER_POST ('87BE8824B69C419DA5924DA535E9E22A');
Date: 2026-07-17 08:34:16 Duration: 11s205ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM C_ORDER_POST ('6E36C85B78004860919752DBAE56904C');
Date: 2026-07-17 12:04:02 Duration: 7s459ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM C_ORDER_POST ('FCBE7A7D8A6746C6A4F67541ED8A3DBA');
Date: 2026-07-17 17:01:50 Duration: 7s431ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
8 48 990.33 MiB 12.91 MiB 45.06 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') 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 ('70A28361608F4FCEB0CA9D0CC721D0FB', '25DF1E8EC0124061B2485C3032874933', 'FF8BDFF2C87F4083B188715A036FA189') 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('%70A28361608F4FCEB0CA9D0CC721D0FB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%25DF1E8EC0124061B2485C3032874933%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%FF8BDFF2C87F4083B188715A036FA189%') 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('%3843%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%70A28361608F4FCEB0CA9D0CC721D0FB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%25DF1E8EC0124061B2485C3032874933%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FF8BDFF2C87F4083B188715A036FA189%' 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-17 13:44:19 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') 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/3597%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' 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-17 09:15:26 Duration: 2s74ms 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 = '30C64733C951418F889EB07A1F7F1DEF') 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 ('70A28361608F4FCEB0CA9D0CC721D0FB', '25DF1E8EC0124061B2485C3032874933', 'FF8BDFF2C87F4083B188715A036FA189') 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('%70A28361608F4FCEB0CA9D0CC721D0FB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%25DF1E8EC0124061B2485C3032874933%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%FF8BDFF2C87F4083B188715A036FA189%') 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('%384%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%70A28361608F4FCEB0CA9D0CC721D0FB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%25DF1E8EC0124061B2485C3032874933%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FF8BDFF2C87F4083B188715A036FA189%' 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-17 13:44:17 Duration: 1s997ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
9 48 989.40 MiB 12.91 MiB 45.06 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(coalesce(fin_paymen9_.name, fin_paymen5_.name)) like upper(?) escape ? order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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-17 09:14:26 Duration: 1s938ms 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 = 'D08A1DDB2FF54D0298D1610F694F1336') 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-17 13:36:59 Duration: 1s911ms 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 = '30C64733C951418F889EB07A1F7F1DEF') 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-17 13:43:21 Duration: 1s862ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
10 48 989.40 MiB 12.91 MiB 45.06 MiB 20.61 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'D08A1DDB2FF54D0298D1610F694F1336') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 13:37:03 Duration: 2s229ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 09:14:29 Duration: 2s154ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 13:43:24 Duration: 2s133ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
11 32 660.18 MiB 12.91 MiB 45.06 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') 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/3859%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' 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-17 09:16:05 Duration: 2s210ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') 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/385%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' 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-17 09:16:04 Duration: 2s178ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($17) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $18;
Date: 2026-07-17 09:16:03 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
12 32 660.18 MiB 12.91 MiB 45.06 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') 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/38%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' 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-17 09:15:43 Duration: 2s100ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') 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/3858%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' 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-17 09:15:43 Duration: 2s33ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($16) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $17;
Date: 2026-07-17 09:15:42 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
13 32 660.18 MiB 12.91 MiB 45.06 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0339461D8574CCFBD6E624AECDE0D0D%') 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 '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:46 Duration: 2s57ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0339461D8574CCFBD6E624AECDE0D0D%') 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/3860%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:47 Duration: 2s26ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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 '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:45 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
14 22 1023.34 MiB 46.52 MiB 46.52 MiB 46.52 MiB select * from m_inout_post0 (?);-
SELECT * FROM M_InOut_Post0 ('B398B18BD851495D8B321C475D34F713');
Date: 2026-07-17 12:39:35 Duration: 7s152ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM M_InOut_Post0 ('8A290F6CCAB94B57B57CCBE9F54E69BE');
Date: 2026-07-17 09:43:31 Duration: 7s122ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT * FROM M_InOut_Post0 ('0818362DBC264D26B03448853426F1C8');
Date: 2026-07-17 17:28:29 Duration: 7s42ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
15 22 270.70 MiB 12.22 MiB 12.38 MiB 12.30 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-17 09:59:52 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
16 16 330.09 MiB 12.91 MiB 45.06 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') 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/3600%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' 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-17 09:16:18 Duration: 1s971ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC') 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 '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' 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-17 09:16:17 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
17 16 330.09 MiB 12.91 MiB 45.06 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D', 'D0203A61C0B744529245B0170377F274') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0339461D8574CCFBD6E624AECDE0D0D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0203A61C0B744529245B0170377F274%') 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/3605%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0203A61C0B744529245B0170377F274%' 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-17 09:17:00 Duration: 2s20ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = $1 and order3_.C_Currency_ID = $2) left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = $3 and invoice7_.C_Currency_ID = $4) left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', $5)) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = $6) and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ($7, $8, $9)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and (fin_paymen0_.FIN_Payment_Scheduledetail_ID in ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D', 'D0203A61C0B744529245B0170377F274') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($17) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($18) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($19) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($20) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0203A61C0B744529245B0170377F274%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $21;
Date: 2026-07-17 09:16:59 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
18 16 330.09 MiB 12.91 MiB 45.06 MiB 20.63 MiB select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D', 'D0203A61C0B744529245B0170377F274', '9ABAD17EB8D147BDA3C333DBCB4D0DED') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0339461D8574CCFBD6E624AECDE0D0D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0203A61C0B744529245B0170377F274%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%9ABAD17EB8D147BDA3C333DBCB4D0DED%') 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/3861%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0203A61C0B744529245B0170377F274%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%9ABAD17EB8D147BDA3C333DBCB4D0DED%' 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-17 09:17:14 Duration: 1s994ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D', 'D0203A61C0B744529245B0170377F274', '9ABAD17EB8D147BDA3C333DBCB4D0DED') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($17) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($18) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($19) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($20) 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($21) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0203A61C0B744529245B0170377F274%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%9ABAD17EB8D147BDA3C333DBCB4D0DED%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $22;
Date: 2026-07-17 09:17:13 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
19 15 181.75 MiB 11.36 MiB 22.72 MiB 12.12 MiB update ad_alert set status = ?, updated = now(), updatedby = ? where ad_alertrule_id = ? and coalesce(status, ?) != ? and not exists ( select ? from ( select prod.upc as referencekey_id, ad_column_identifier (?, prod.upc, ?) as record_id, ? as ad_role_id, null as ad_user_id, ? || prod.upc as description, ? as isactive, prod.ad_org_id, prod.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from m_product prod where prod.upc is not null and prod.upc <> ? group by prod.upc, prod.ad_org_id, prod.ad_client_id having count(*) > ?) a where ? = ? and a.referencekey_id = ad_alert.referencekey_id);-
UPDATE AD_ALERT SET STATUS = 'SOLVED', UPDATED = NOW(), UPDATEDBY = 0 WHERE AD_ALERTRULE_ID = $1 AND COALESCE(STATUS, 'NEW') != 'SOLVED' AND NOT EXISTS ( SELECT 1 FROM ( select prod.upc AS referencekey_id, ad_column_identifier ('m_proudct', prod.upc, 'es_ES') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, 'UPC duplicado: ' || prod.upc AS description, 'Y' AS isActive, prod.ad_org_id, prod.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy from m_product prod where prod.upc is not null and prod.upc <> '' group by prod.upc, prod.ad_org_id, prod.ad_client_id having count(*) > 1) A WHERE 1 = 1 AND A.REFERENCEKEY_ID = AD_ALERT.REFERENCEKEY_ID);
Date: 2026-07-17 07:00:04 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
20 13 147.67 MiB 11.36 MiB 11.36 MiB 11.36 MiB select * from ( select ;-
SELECT * FROM ( select ;
Date: 2026-07-17 08:00:04 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
21 3 139.55 MiB 46.52 MiB 46.52 MiB 46.52 MiB select c_order_post1 (?, ?, ?) as result from dual;-
SELECT c_order_post1 ($1, $2, $3) AS RESULT FROM DUAL;
Date: 2026-07-17 10:27:21 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
22 1 11.36 MiB 11.36 MiB 11.36 MiB 11.36 MiB select * from ( select distinct ad_column_identifier (?, fin_payment_schedule.c_invoice_id, ?) as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = ? group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, ?)) order by ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);-
SELECT * FROM ( select distinct ad_column_identifier ('c_invoice', fin_payment_schedule.c_invoice_id, 'en_US') as record_id, fin_payment_schedule.c_invoice_id as referencekey_id, 0 as ad_role_id, null as ad_user_id, 'This invoice needs to be reactivated and processed again due to wrong payment info.' as description, 'Y' as isActive, fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from fin_payment_schedule, fin_payment_scheduledetail where fin_payment_schedule.fin_payment_schedule_id = fin_payment_scheduledetail.fin_payment_schedule_invoice and fin_payment_scheduledetail.iscanceled = 'N' group by fin_payment_schedule.ad_org_id, fin_payment_schedule.ad_client_id, fin_payment_schedule.fin_payment_schedule_id, fin_payment_schedule.c_invoice_id, fin_payment_schedule.amount having fin_payment_schedule.amount <> sum(fin_payment_scheduledetail.amount + coalesce(fin_payment_scheduledetail.writeoffamt, 0)) order by 1) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'DF2689B486E04B849AB2F8CD38EE5B23' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 07:00:02 Duration: 1s39ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 09:08:40 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 09:17:59 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 09:30:50 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 46.52 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-17 09:30:57 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 46.52 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-17 09:33:30 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 09:41:11 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 46.52 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-17 09:43:31 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 09:50:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 46.52 MiB SELECT * FROM M_InOut_Post0 ($1);[ Date: 2026-07-17 09:56:28 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 09:58:02 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 10:04:33 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 10:10:39 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 46.52 MiB SELECT c_order_post1 ($1, $2, $3) AS RESULT FROM DUAL;[ Date: 2026-07-17 10:27:21 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 46.52 MiB SELECT c_order_post1 ($1, $2, $3) AS RESULT FROM DUAL;[ Date: 2026-07-17 10:27:33 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 10:33:34 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 10:33:44 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 10:37:33 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 46.52 MiB SELECT * FROM C_Order_Post ($1);[ Date: 2026-07-17 10:44:21 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 46.52 MiB SELECT * FROM C_ORDER_POST ($1);[ Date: 2026-07-17 10:45:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 46.52 MiB SELECT * FROM C_Order_Post ($1);[ Date: 2026-07-17 10:47:35 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 6.98 sec Highest CPU-cost vacuum
Table public.c_invoice
Database etendo - 2026-07-17 17:56:29 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 6.98 sec Highest CPU-cost vacuum
Table public.c_invoice
Database etendo - 2026-07-17 17:56:29 Date
Analyzes per table
Key values
- public.ad_ep_instance_para (77) Main table analyzed (database etendo)
- 222 analyzes Total
Table Number of analyzes etendo.public.ad_ep_instance_para 77 etendo.public.ad_session 16 etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.tables_list 9 etendo.profile.last_stat_io 8 etendo.profile.stmt_list 7 etendo.profile.indexes_list 5 etendo.profile.last_extension_versions 5 etendo.public.ad_sequence 4 etendo.public.ad_preference 4 etendo.profile.last_stat_activity_count_srv1 4 etendo.profile.funcs_list 4 etendo.public.ad_process_request 3 etendo.public.ad_pinstance 2 etendo.public.c_invoice 2 etendo.profile.last_stat_slru 2 etendo.profile.sample_stat_indexes_total 1 etendo.profile.sample_stat_indexes 1 etendo.profile.sample_statements 1 etendo.profile.sample_stat_tables_total 1 etendo.profile.sample_stat_io 1 etendo.profile.sample_stat_user_functions 1 etendo.public.fin_financial_account 1 etendo.profile.sample_stat_database 1 etendo.profile.sample_stat_slru 1 etendo.profile.sample_stat_tables 1 Total 222 Vacuums per table
Key values
- public.ad_ep_instance_para (46) Main table vacuumed on database etendo
- 137 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 46 46 2,742 0 201 0 0 322 91 685,537 0 0 etendo.profile.last_stat_indexes_srv1 15 15 20,632 0 368 0 0 14,977 375 2,312,798 0 0 etendo.profile.last_stat_user_functions_srv1 15 15 2,762 0 63 0 0 1,646 52 354,089 0 0 etendo.profile.last_stat_tables_srv1 15 15 15,416 0 230 0 0 11,702 238 1,611,709 0 0 etendo.profile.last_stat_statements_srv1 15 15 13,036 0 229 0 0 9,133 230 1,414,786 0 0 etendo.profile.tables_list 6 6 1,001 0 15 0 0 565 8 110,862 0 0 etendo.profile.stmt_list 4 4 1,184 0 62 0 0 793 43 316,029 11 22 etendo.profile.last_stat_io 4 4 242 0 14 0 0 30 5 36,395 0 0 etendo.profile.indexes_list 4 4 511 0 23 0 0 144 13 106,737 0 0 etendo.profile.funcs_list 3 3 263 0 10 0 0 73 5 43,925 0 0 etendo.profile.last_extension_versions 2 2 101 0 10 0 0 10 4 33,564 0 0 etendo.profile.last_stat_activity_count_srv1 2 0 56 0 10 0 0 12 4 32,736 0 0 etendo.public.c_invoice 1 1 63,737 0 28,513 0 0 33,687 3,179 6,400,944 22 33 etendo.public.ad_process_run 1 0 1,889 0 1,735 0 0 1,737 6 134,796 4 15 etendo.pg_toast.pg_toast_2619 1 1 765 0 222 0 0 465 138 372,665 50 104 etendo.pg_toast.pg_toast_201017 1 1 119 0 34 0 0 48 4 18,692 1 1 etendo.profile.last_stat_slru 1 1 70 0 5 0 0 5 2 16,704 0 0 etendo.profile.last_stat_database_srv1 1 1 50 0 6 0 0 6 3 24,331 0 0 Total 137 134 124,576 9,971 31,750 0 0 75,355 4,400 14,027,299 88 175 Vacuum throughput per table
Key values
- public.c_invoice (6.98) 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_indexes_srv1 0 0 0.27 etendo.profile.last_stat_user_functions_srv1 0 0 0 etendo.profile.last_stat_tables_srv1 0 0 0.15 etendo.profile.last_stat_statements_srv1 0 0 0.12 etendo.profile.tables_list 0 0 0 etendo.profile.stmt_list 0 0 0 etendo.profile.last_stat_io 0 0 0 etendo.profile.indexes_list 0 0 0 etendo.profile.funcs_list 0 0 0 etendo.profile.last_extension_versions 0 0 0 etendo.profile.last_stat_activity_count_srv1 0 0 0 etendo.public.c_invoice 0 0 6.98 etendo.public.ad_process_run 0 0 0.43 etendo.pg_toast.pg_toast_2619 0 0 0.06 etendo.pg_toast.pg_toast_201017 0 0 0 etendo.profile.last_stat_slru 0 0 0 etendo.profile.last_stat_database_srv1 0 0 0 Total 0 0 8.01 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (94147) Main table with removed tuples on database etendo
- 194154 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.profile.last_stat_indexes_srv1 15 15 94,147 46,560 0 632 5,101 etendo.profile.last_stat_tables_srv1 15 15 58,123 27,525 0 98 4,383 etendo.profile.last_stat_statements_srv1 15 15 29,263 25,784 0 382 2,736 etendo.profile.last_stat_user_functions_srv1 15 15 8,025 7,095 0 2 491 etendo.profile.tables_list 6 6 1,103 5,932 0 0 174 etendo.public.c_invoice 1 1 1,036 204,814 0 0 28,217 etendo.public.ad_ep_instance_para 46 46 996 0 0 46 0 etendo.profile.stmt_list 4 4 417 3,216 0 0 308 etendo.pg_toast.pg_toast_2619 1 1 322 1,811 0 0 631 etendo.profile.indexes_list 4 4 171 1,412 0 0 40 etendo.profile.funcs_list 3 3 163 516 0 0 21 etendo.profile.last_stat_io 4 4 147 64 0 0 8 etendo.profile.last_extension_versions 2 2 108 18 0 0 2 etendo.profile.last_stat_slru 1 1 55 5 0 0 1 etendo.profile.last_stat_activity_count_srv1 2 0 48 0 0 2 0 etendo.public.ad_process_run 1 0 15 14,022 0 0 1,755 etendo.pg_toast.pg_toast_201017 1 1 11 141 0 0 34 etendo.profile.last_stat_database_srv1 1 1 4 4 0 0 1 Total 137 134 194,154 338,919 0 1,162 43,903 Pages removed per table
Key values
- profile.last_stat_indexes_srv1 (632) Main table with removed pages on database etendo
- 1162 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed etendo.profile.last_stat_indexes_srv1 15 15 94147 632 etendo.profile.last_stat_statements_srv1 15 15 29263 382 etendo.profile.last_stat_tables_srv1 15 15 58123 98 etendo.public.ad_ep_instance_para 46 46 996 46 etendo.profile.last_stat_user_functions_srv1 15 15 8025 2 etendo.profile.last_stat_activity_count_srv1 2 0 48 2 etendo.profile.stmt_list 4 4 417 0 etendo.public.c_invoice 1 1 1036 0 etendo.profile.last_extension_versions 2 2 108 0 etendo.profile.last_stat_io 4 4 147 0 etendo.profile.tables_list 6 6 1103 0 etendo.public.ad_process_run 1 0 15 0 etendo.pg_toast.pg_toast_2619 1 1 322 0 etendo.pg_toast.pg_toast_201017 1 1 11 0 etendo.profile.last_stat_slru 1 1 55 0 etendo.profile.funcs_list 3 3 163 0 etendo.profile.indexes_list 4 4 171 0 etendo.profile.last_stat_database_srv1 1 1 4 0 Total 137 134 194,154 1,162 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 17 07 4 8 08 10 12 09 11 20 10 10 17 11 11 22 12 16 20 13 8 17 14 7 10 15 9 17 16 13 17 17 14 30 18 6 7 19 7 6 20 5 10 21 6 9 - 6.98 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- ShareLock Main Lock Type
- 1 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 1 3s951ms 3s951ms 3s951ms 3s951ms update ad_sequence set updated = ?, currentnext = ? where ad_sequence_id = ?;-
update AD_Sequence set Updated = '2026-07-17 09:30:46.821', CurrentNext = '1211245' where AD_Sequence_ID = 'FF80818133B7413E0133B716550F002A';
Date: 2026-07-17 09:30:50 Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update AD_Sequence set Updated = $1, CurrentNext = $2 where AD_Sequence_ID = $3;
Date: 2026-07-17 09:30:50 Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries that waited the most
Rank Wait time Query 1 3s951ms update AD_Sequence set Updated = $1, CurrentNext = $2 where AD_Sequence_ID = $3;[ Date: 2026-07-17 09:30:50 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Queries
Queries by type
Key values
- 182 Total read queries
- 2 Total write queries
Queries by database
Key values
- etendo Main database
- 184 Requests
- 14m37s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 184 Requests
User Request type Count Duration tad Total 184 14m37s delete 1 3s38ms select 182 14m30s update 1 3s951ms Duration by user
Key values
- 14m37s (tad) Main time consuming user
User Request type Count Duration tad Total 184 14m37s delete 1 3s38ms select 182 14m30s update 1 3s951ms Queries by host
Key values
- 127.0.0.1 Main host
- 184 Requests
- 14m37s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 184 Requests
- 14m37s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-17 10:37:36 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 181 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 48s271ms 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 ('66EB72FBDE684A0B890AF7D9CB2A2DE7', '67051C047BA843309AA9A2227E8ECAE4', '67111F086D4F470F9F6B39EB8929ADB3', '6718EA2D30384CDFA6E11373D0F437C2', '673505CF709B49808893B733232E0B2A', '67358E582A4D4620BC1871D0F397426E', '675E28CDC6794D8B95063BE0D76B16C0', '67605D57F59D438EACE18AA657713AD0', '67892B26278040198E52A9A472081759', '6797C4515DA3493F97DC66A8AFC3A0EC', '67AA88876EE24D3B8F1392A2C575E8CA', '67B40C1D72134503943050E180D888AB', '67DBDA4AF67842A5A0C312F786EDEDFE', '67DD2A95F6E84668938D70DB9A35B4FB', '67F3EC12C1DF4789BBED8EFE7AD33D40', '680C40EC7C124803BF699887E7EA5EC4', '6826592F3B694C8B82ED5197396A643D', '68323800ADBA4B37BFA70B97EB4BF89D', '683CF511380A49AC920E319292A4E9A9', '684EB55FFC3C42AEBE2CACD867197036', '685E20C464B647FCB1477E28DCB06253', '688F044CB9234AEFB24CC2032DE129C4', '68B08AED38CE41E3A956E5B116062692', '68D3594DFD1A447A85BB59CEE4904B55', '68F84AEF03B44EE8B7745AB3BBEB3627', '68FDF75F502E4E0ABF4A4AD15B7EBB0B', '6909D929D3074FF89613C7253DDB1BF4', '690BBADA8F604FB391ECA9E265090A9C', '69157E3ABF434392BE2286E96D64DA33', '6915E3AD0DF44399BD3D119E284CC652', '691920D92A0F44759E5217286F45A2F2', '691BB531C31C440480EC243898CEC977', '6928DA7BF84D4925B53A484CAFF8D7E7', '69296FFF69FD48B3A0490F1C6F31CE20', '695BB35110224AEB997FD38663953F32', '6970A3FBF7784640A1C5BA4587A67CB0', '6976A199A1564B498C542C13E3DCBA2C', '6983AEDE07634DD5B22AAB487C235538', '699151A791CD4DEE802FCC694DD8D4FD', '69AD96A007234C77B9CC55E5BBA9711E', '69BF5552F27345A2A503EF15E62C9F06', '69D395B3B9E74AF3B55092DCBC03D8E7', '69E53ECC3AFA43ACAC1A18065C0033DE', '69EFB25DE72C4726904F489B0204234A', '69F26672AA0E458EB59E3451C12B2D4B', '69F55BFBC91044B1B48BC26D1B75939D', '69FC9C3B1FEF49E78580F1EEA338F85D', '69FE46DE1AF34FAC9730CD830EA925FF', '6A158EB06CF444BBAB863535BF002333', '6A3ECF3DF3074BC1B150811D0E72DEAD');[ Date: 2026-07-17 08:44:01 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 47s541ms 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 ('6A537614D3214988A776CBD409DC4288', '6A57EC991B2847858EF98F9802A19EA2', '6A582E873F7F4C47A9213F9113519CA0', '6A5DC9754B824A08B3116FAC4262EA8D', '6A74347EA56245C38EFA8BE882F0CF9C', '6A7824EFB02C4519BDF5982B238755E3', '6A85C67CA628479C99377BCFE45C536A', '6A899EA0726C4871B52949321113DA20', '6A9C53B78D774FD8AEB6A57AD3378A00', '6AAC398A3D1A4E198B72DBDF060C5991', '6AEF5D0F9D9D40E994AD2365DF980413', '6AFDC7F9C7174A48A24E3B73AD715F53', '6AFF8BFA550F47A29D93CBF50B31D24F', '6B019FD442EB42ED80B4B1D2EF6F7912', '6B12B74603C64B848C5D56A06497A3C5', '6B1DE3634ACD46D5B7AB660884EDBEC8', '6B2C7D02B5024B2AAE397A312EA6753E', '6B308708E9F24B7C9BC101F422051F3F', '6B3E051AE400441BA3F9A8EEFC94DCC1', '6B465D6E04A1442D81F494DFC7042F49', '6B5B2FD85E554AF68CA81A76A9C5DD39', '6B5D693551AB4828933DE19C2A885204', '6B602361E0334F5CBFA50795D3340522', '6B6E856F4E574A81BE6D97AE39441090', '6B8792B0D824469DB26897B08A4FE202', '6B8CBDF9D2FC4DA0A232D4429D46614C', '6B8ED7438D454B4DAF61D28908B1A420', '6B918DB3C24044738F347579A741868B', '6B9C1B8AE0974618AC0A4B1D985FDBE4', '6B9D3DACBCEB43FEA0E98694D2156FF7', '6BD4E51F3F964583A1CAA4F3DE3B0B51', '6BD86FACBF2A4261AA83E19A8A8CF27F', '6BD8B4C1864E49CAB2D72F6781D62E7D', '6BD8DBB1BF9F45F983F0A01FDC0F857C', '6BEC20EB8F7040F88F5A8E18AD264BF6', '6BF2F910CA9E456BB9B7C49C847F8730', '6BF3696D82D24199975535B29B7C5434', '6C0959DE4D1040D594E03789ED85F8D6', '6C133105819642AE91B089F6506EC606', '6C31C3A2D22D4E4292A3092E1CE8723B', '6C3B30D3FE8E4E279F3634743D8D22A8', '6C4091F3737548BD8A1DECC332EEE0CC', '6C439FD71FE249A2A091B60FE765B176', '6C4B1E9448A5423AAAB3A24A92F7BA3D', '6C5F8A3717C44C5984D86206C44C94A8', '6C6B2ABA2F6E409282C221BBE19A3864', '6C741B5BFD41417D9366DCF1B323E500', '6C77398F2D264E16BF0D2785286CD811', '6C78892DB2DB4905BE756D03086F40DE', '6C7B84CB058641A0AE154BBC9C674309');[ Date: 2026-07-17 08:44:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 11s205ms SELECT * FROM C_ORDER_POST ('87BE8824B69C419DA5924DA535E9E22A');[ Date: 2026-07-17 08:34:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 7s459ms SELECT * FROM C_ORDER_POST ('6E36C85B78004860919752DBAE56904C');[ Date: 2026-07-17 12:04:02 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
5 7s431ms SELECT * FROM C_ORDER_POST ('FCBE7A7D8A6746C6A4F67541ED8A3DBA');[ Date: 2026-07-17 17:01:50 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 7s392ms SELECT * FROM C_ORDER_POST ('8956FDE3710444E7B6D10150C6136DB3');[ Date: 2026-07-17 10:04:33 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 7s320ms SELECT * FROM C_ORDER_POST ('2D217CD3145E49D0838716D1A6E5A143');[ Date: 2026-07-17 18:05:20 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 7s318ms SELECT * FROM C_ORDER_POST ('8003C529FCD74618A79A006E7CCAE635');[ Date: 2026-07-17 11:34:21 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
9 7s315ms SELECT * FROM C_ORDER_POST ('346700F59CA04181A5AF58C473869AC3');[ Date: 2026-07-17 15:58:12 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 7s311ms SELECT * FROM C_ORDER_POST ('2C39E2804FB549578AE9B1AB908E89EF');[ Date: 2026-07-17 17:22:25 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
11 7s307ms SELECT * FROM C_ORDER_POST ('E5542399124D48769AE270C3B9A41404');[ Date: 2026-07-17 11:47:58 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 7s305ms SELECT * FROM C_Order_Post ('DC941E0DBA6543A5951AC0A50229148C');[ Date: 2026-07-17 10:44:21 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 7s287ms SELECT * FROM C_ORDER_POST ('437D9CB6A1C44686B453057E4F09851A');[ Date: 2026-07-17 09:17:59 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 7s286ms SELECT * FROM C_ORDER_POST ('D9EF11B5A9D443A7B7A484843F57DE83');[ Date: 2026-07-17 11:08:28 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 7s281ms SELECT * FROM C_ORDER_POST ('9497C67052A147CFBD7E295FE9C91CA4');[ Date: 2026-07-17 10:54:53 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 7s281ms SELECT * FROM C_ORDER_POST ('C8BAC86199C44817AB460801DE806BA8');[ Date: 2026-07-17 10:45:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 7s273ms SELECT * FROM C_ORDER_POST ('F94DC50FEABE4C66BEEB247957DABEF0');[ Date: 2026-07-17 12:04:44 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 7s258ms SELECT * FROM C_ORDER_POST ('5C211509FF2844BC90CF39A8497A6C18');[ Date: 2026-07-17 18:03:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 7s229ms SELECT * FROM C_ORDER_POST ('93474A4A5AEA42B08B4A80FE55AE4586');[ Date: 2026-07-17 10:48:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 7s227ms SELECT * FROM C_ORDER_POST ('84B9F353B1E34EEC83974EE8D58DE20C');[ Date: 2026-07-17 10:52:22 - 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 7m33s 63 6s782ms 11s205ms 7s196ms select * from c_order_post (?);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 08 1 11s205ms 11s205ms 09 6 42s932ms 7s155ms 10 12 1m26s 7s202ms 11 9 1m4s 7s169ms 12 7 49s999ms 7s142ms 13 2 14s316ms 7s158ms 15 3 21s570ms 7s190ms 16 8 55s981ms 6s997ms 17 12 1m24s 7s70ms 18 3 21s561ms 7s187ms [ User: tad - Total duration: 7m33s - Times executed: 63 ]
[ Application: openbravo - Total duration: 7m33s - Times executed: 63 ]
-
SELECT * FROM C_ORDER_POST ('87BE8824B69C419DA5924DA535E9E22A');
Date: 2026-07-17 08:34:16 Duration: 11s205ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('6E36C85B78004860919752DBAE56904C');
Date: 2026-07-17 12:04:02 Duration: 7s459ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('FCBE7A7D8A6746C6A4F67541ED8A3DBA');
Date: 2026-07-17 17:01:50 Duration: 7s431ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 2m33s 22 6s701ms 7s152ms 6s955ms select * from m_inout_post0 (?);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 09 4 27s972ms 6s993ms 11 4 28s33ms 7s8ms 12 4 28s52ms 7s13ms 16 5 34s509ms 6s901ms 17 5 34s459ms 6s891ms [ User: tad - Total duration: 2m33s - Times executed: 22 ]
[ Application: openbravo - Total duration: 2m33s - Times executed: 22 ]
-
SELECT * FROM M_InOut_Post0 ('B398B18BD851495D8B321C475D34F713');
Date: 2026-07-17 12:39:35 Duration: 7s152ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('8A290F6CCAB94B57B57CCBE9F54E69BE');
Date: 2026-07-17 09:43:31 Duration: 7s122ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('0818362DBC264D26B03448853426F1C8');
Date: 2026-07-17 17:28:29 Duration: 7s42ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 1m35s 2 47s541ms 48s271ms 47s906ms select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id in (...);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 08 2 1m35s 47s906ms [ User: tad - Total duration: 1m35s - Times executed: 2 ]
[ Application: openbravo - Total duration: 1m35s - Times executed: 2 ]
-
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 ('66EB72FBDE684A0B890AF7D9CB2A2DE7', '67051C047BA843309AA9A2227E8ECAE4', '67111F086D4F470F9F6B39EB8929ADB3', '6718EA2D30384CDFA6E11373D0F437C2', '673505CF709B49808893B733232E0B2A', '67358E582A4D4620BC1871D0F397426E', '675E28CDC6794D8B95063BE0D76B16C0', '67605D57F59D438EACE18AA657713AD0', '67892B26278040198E52A9A472081759', '6797C4515DA3493F97DC66A8AFC3A0EC', '67AA88876EE24D3B8F1392A2C575E8CA', '67B40C1D72134503943050E180D888AB', '67DBDA4AF67842A5A0C312F786EDEDFE', '67DD2A95F6E84668938D70DB9A35B4FB', '67F3EC12C1DF4789BBED8EFE7AD33D40', '680C40EC7C124803BF699887E7EA5EC4', '6826592F3B694C8B82ED5197396A643D', '68323800ADBA4B37BFA70B97EB4BF89D', '683CF511380A49AC920E319292A4E9A9', '684EB55FFC3C42AEBE2CACD867197036', '685E20C464B647FCB1477E28DCB06253', '688F044CB9234AEFB24CC2032DE129C4', '68B08AED38CE41E3A956E5B116062692', '68D3594DFD1A447A85BB59CEE4904B55', '68F84AEF03B44EE8B7745AB3BBEB3627', '68FDF75F502E4E0ABF4A4AD15B7EBB0B', '6909D929D3074FF89613C7253DDB1BF4', '690BBADA8F604FB391ECA9E265090A9C', '69157E3ABF434392BE2286E96D64DA33', '6915E3AD0DF44399BD3D119E284CC652', '691920D92A0F44759E5217286F45A2F2', '691BB531C31C440480EC243898CEC977', '6928DA7BF84D4925B53A484CAFF8D7E7', '69296FFF69FD48B3A0490F1C6F31CE20', '695BB35110224AEB997FD38663953F32', '6970A3FBF7784640A1C5BA4587A67CB0', '6976A199A1564B498C542C13E3DCBA2C', '6983AEDE07634DD5B22AAB487C235538', '699151A791CD4DEE802FCC694DD8D4FD', '69AD96A007234C77B9CC55E5BBA9711E', '69BF5552F27345A2A503EF15E62C9F06', '69D395B3B9E74AF3B55092DCBC03D8E7', '69E53ECC3AFA43ACAC1A18065C0033DE', '69EFB25DE72C4726904F489B0204234A', '69F26672AA0E458EB59E3451C12B2D4B', '69F55BFBC91044B1B48BC26D1B75939D', '69FC9C3B1FEF49E78580F1EEA338F85D', '69FE46DE1AF34FAC9730CD830EA925FF', '6A158EB06CF444BBAB863535BF002333', '6A3ECF3DF3074BC1B150811D0E72DEAD');
Date: 2026-07-17 08:44:01 Duration: 48s271ms 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 ('6A537614D3214988A776CBD409DC4288', '6A57EC991B2847858EF98F9802A19EA2', '6A582E873F7F4C47A9213F9113519CA0', '6A5DC9754B824A08B3116FAC4262EA8D', '6A74347EA56245C38EFA8BE882F0CF9C', '6A7824EFB02C4519BDF5982B238755E3', '6A85C67CA628479C99377BCFE45C536A', '6A899EA0726C4871B52949321113DA20', '6A9C53B78D774FD8AEB6A57AD3378A00', '6AAC398A3D1A4E198B72DBDF060C5991', '6AEF5D0F9D9D40E994AD2365DF980413', '6AFDC7F9C7174A48A24E3B73AD715F53', '6AFF8BFA550F47A29D93CBF50B31D24F', '6B019FD442EB42ED80B4B1D2EF6F7912', '6B12B74603C64B848C5D56A06497A3C5', '6B1DE3634ACD46D5B7AB660884EDBEC8', '6B2C7D02B5024B2AAE397A312EA6753E', '6B308708E9F24B7C9BC101F422051F3F', '6B3E051AE400441BA3F9A8EEFC94DCC1', '6B465D6E04A1442D81F494DFC7042F49', '6B5B2FD85E554AF68CA81A76A9C5DD39', '6B5D693551AB4828933DE19C2A885204', '6B602361E0334F5CBFA50795D3340522', '6B6E856F4E574A81BE6D97AE39441090', '6B8792B0D824469DB26897B08A4FE202', '6B8CBDF9D2FC4DA0A232D4429D46614C', '6B8ED7438D454B4DAF61D28908B1A420', '6B918DB3C24044738F347579A741868B', '6B9C1B8AE0974618AC0A4B1D985FDBE4', '6B9D3DACBCEB43FEA0E98694D2156FF7', '6BD4E51F3F964583A1CAA4F3DE3B0B51', '6BD86FACBF2A4261AA83E19A8A8CF27F', '6BD8B4C1864E49CAB2D72F6781D62E7D', '6BD8DBB1BF9F45F983F0A01FDC0F857C', '6BEC20EB8F7040F88F5A8E18AD264BF6', '6BF2F910CA9E456BB9B7C49C847F8730', '6BF3696D82D24199975535B29B7C5434', '6C0959DE4D1040D594E03789ED85F8D6', '6C133105819642AE91B089F6506EC606', '6C31C3A2D22D4E4292A3092E1CE8723B', '6C3B30D3FE8E4E279F3634743D8D22A8', '6C4091F3737548BD8A1DECC332EEE0CC', '6C439FD71FE249A2A091B60FE765B176', '6C4B1E9448A5423AAAB3A24A92F7BA3D', '6C5F8A3717C44C5984D86206C44C94A8', '6C6B2ABA2F6E409282C221BBE19A3864', '6C741B5BFD41417D9366DCF1B323E500', '6C77398F2D264E16BF0D2785286CD811', '6C78892DB2DB4905BE756D03086F40DE', '6C7B84CB058641A0AE154BBC9C674309');
Date: 2026-07-17 08:44:48 Duration: 47s541ms 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 ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50);
Date: 2026-07-17 08:43:14 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
4 30s274ms 24 1s196ms 1s357ms 1s261ms 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 #4
Day Hour Count Duration Avg duration Jul 17 10 14 17s801ms 1s271ms 17 10 12s472ms 1s247ms [ User: tad - Total duration: 30s274ms - Times executed: 24 ]
[ Application: openbravo - Total duration: 30s274ms - Times executed: 24 ]
-
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('%UFI1232%') or upper(product1_.Value) like upper('%UFI1232%') or upper(product1_.Name) like upper('%UFI1232%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-17 10:31:00 Duration: 1s357ms 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('%PETIT%MATERI%') or upper(product1_.Value) like upper('%PETIT%MATERI%') or upper(product1_.Name) like upper('%PETIT%MATERI%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-17 10:31:53 Duration: 1s320ms 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('%UFI12324%') or upper(product1_.Value) like upper('%UFI12324%') or upper(product1_.Name) like upper('%UFI12324%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-17 10:31:06 Duration: 1s317ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 21s292ms 3 7s3ms 7s154ms 7s97ms select c_order_post1 (null, ?, ?) as result from dual;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 10 2 14s288ms 7s144ms 11 1 7s3ms 7s3ms [ User: tad - Total duration: 21s292ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 21s292ms - Times executed: 3 ]
-
SELECT c_order_post1 (NULL, 'A8A6B52D29EB4E1B82EE48683FB2010D', 'N') AS RESULT FROM DUAL;
Date: 2026-07-17 10:27:21 Duration: 7s154ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, 'D71E4185E42B4658BC24501BB2EDEF69', 'N') AS RESULT FROM DUAL;
Date: 2026-07-17 10:27:33 Duration: 7s134ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, '5EA023F6851A40EA95FBEAFE571D2BB3', 'N') AS RESULT FROM DUAL;
Date: 2026-07-17 11:03:25 Duration: 7s3ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 17s389ms 15 1s84ms 1s214ms 1s159ms select * from ( select o.c_order_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, o.c_order_id, ?) || ? || sum(ol.linenetamt) || ? || o.totallines as description, ? as isactive, o.ad_org_id as ad_org_id, o.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, o.c_order_id, ?) as record_id from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 17 07 1 1s206ms 1s206ms 08 1 1s137ms 1s137ms 09 1 1s211ms 1s211ms 10 1 1s144ms 1s144ms 11 1 1s167ms 1s167ms 12 1 1s176ms 1s176ms 13 1 1s149ms 1s149ms 14 1 1s84ms 1s84ms 15 1 1s214ms 1s214ms 16 1 1s130ms 1s130ms 17 1 1s170ms 1s170ms 18 1 1s133ms 1s133ms 19 1 1s167ms 1s167ms 20 1 1s101ms 1s101ms 21 1 1s192ms 1s192ms [ User: tad - Total duration: 17s389ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 17s389ms - 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-17 15:00:01 Duration: 1s214ms 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-17 09:00:01 Duration: 1s211ms 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-17 07:00:01 Duration: 1s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 16s419ms 8 1s806ms 2s840ms 2s52ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 17 09 3 5s867ms 1s955ms 13 5 10s552ms 2s110ms [ User: tad - Total duration: 16s419ms - Times executed: 8 ]
[ Application: openbravo - Total duration: 16s419ms - Times executed: 8 ]
-
select array_to_string(array_agg(fin_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 = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%3%') 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-17 13:43:30 Duration: 2s840ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/%') 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-17 09:14:33 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%3590%') 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-17 13:43:30 Duration: 2s19ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 10s580ms 5 2s59ms 2s209ms 2s116ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 17 09 3 6s460ms 2s153ms 13 2 4s120ms 2s60ms [ User: tad - Total duration: 10s580ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 10s580ms - Times executed: 5 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/385%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:52 Duration: 2s209ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/3857%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:53 Duration: 2s165ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/38%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:52 Duration: 2s86ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 8s694ms 4 1s947ms 2s282ms 2s173ms select array_to_string(array_agg(fin_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 #9
Day Hour Count Duration Avg duration Jul 17 09 3 6s746ms 2s248ms 13 1 1s947ms 1s947ms [ User: tad - Total duration: 8s694ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s694ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/35%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:09 Duration: 2s282ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/359%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:10 Duration: 2s254ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') 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/3595%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:10 Duration: 2s209ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 8s278ms 4 2s14ms 2s158ms 2s69ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ? offset ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 17 09 1 2s40ms 2s40ms 13 3 6s238ms 2s79ms [ User: tad - Total duration: 8s278ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s278ms - 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 max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '200';
Date: 2026-07-17 13:43:29 Duration: 2s158ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-17 13:43:26 Duration: 2s66ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-17 09:14:31 Duration: 2s40ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 6s658ms 6 1s 1s515ms 1s109ms 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 #11
Day Hour Count Duration Avg duration Jul 17 08 1 1s515ms 1s515ms 11 1 1s80ms 1s80ms 15 3 3s62ms 1s20ms 17 1 1s 1s [ User: tad - Total duration: 6s658ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 6s658ms - Times executed: 6 ]
-
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 = '685E20C464B647FCB1477E28DCB06253';
Date: 2026-07-17 08:30:53 Duration: 1s515ms 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 = '038AF2FA2F04427CAED332404A60E870';
Date: 2026-07-17 11:58:55 Duration: 1s80ms 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 = '6C836A724E2C46D6BEC5A17CBF060CD7';
Date: 2026-07-17 15:15:07 Duration: 1s50ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 6s517ms 3 2s133ms 2s229ms 2s172ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 17 09 1 2s154ms 2s154ms 13 2 4s362ms 2s181ms [ User: tad - Total duration: 6s517ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s517ms - 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_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'D08A1DDB2FF54D0298D1610F694F1336') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 13:37:03 Duration: 2s229ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 09:14:29 Duration: 2s154ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 13:43:24 Duration: 2s133ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 6s186ms 3 1s997ms 2s114ms 2s62ms select array_to_string(array_agg(fin_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 17 09 1 2s74ms 2s74ms 13 2 4s111ms 2s55ms [ User: tad - Total duration: 6s186ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s186ms - 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 = '30C64733C951418F889EB07A1F7F1DEF') 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 ('70A28361608F4FCEB0CA9D0CC721D0FB', '25DF1E8EC0124061B2485C3032874933', 'FF8BDFF2C87F4083B188715A036FA189') 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('%70A28361608F4FCEB0CA9D0CC721D0FB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%25DF1E8EC0124061B2485C3032874933%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%FF8BDFF2C87F4083B188715A036FA189%') 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('%3843%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%70A28361608F4FCEB0CA9D0CC721D0FB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%25DF1E8EC0124061B2485C3032874933%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FF8BDFF2C87F4083B188715A036FA189%' 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-17 13:44:19 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') 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/3597%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' 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-17 09:15:26 Duration: 2s74ms 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 = '30C64733C951418F889EB07A1F7F1DEF') 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 ('70A28361608F4FCEB0CA9D0CC721D0FB', '25DF1E8EC0124061B2485C3032874933', 'FF8BDFF2C87F4083B188715A036FA189') 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('%70A28361608F4FCEB0CA9D0CC721D0FB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%25DF1E8EC0124061B2485C3032874933%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%FF8BDFF2C87F4083B188715A036FA189%') 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('%384%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%70A28361608F4FCEB0CA9D0CC721D0FB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%25DF1E8EC0124061B2485C3032874933%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FF8BDFF2C87F4083B188715A036FA189%' 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-17 13:44:17 Duration: 1s997ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 5s712ms 3 1s862ms 1s938ms 1s904ms select array_to_string(array_agg(fin_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 17 09 1 1s938ms 1s938ms 13 2 3s774ms 1s887ms [ User: tad - Total duration: 5s712ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s712ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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-17 09:14:26 Duration: 1s938ms 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 = 'D08A1DDB2FF54D0298D1610F694F1336') 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-17 13:36:59 Duration: 1s911ms 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 = '30C64733C951418F889EB07A1F7F1DEF') 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-17 13:43:21 Duration: 1s862ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 4s389ms 2 2s178ms 2s210ms 2s194ms select array_to_string(array_agg(fin_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 #15
Day Hour Count Duration Avg duration Jul 17 09 2 4s389ms 2s194ms [ User: tad - Total duration: 4s389ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s389ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') 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/3859%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' 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-17 09:16:05 Duration: 2s210ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') 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/385%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' 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-17 09:16:04 Duration: 2s178ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($17) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $18;
Date: 2026-07-17 09:16:03 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
16 4s133ms 2 2s33ms 2s100ms 2s66ms select array_to_string(array_agg(fin_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 #16
Day Hour Count Duration Avg duration Jul 17 09 2 4s133ms 2s66ms [ User: tad - Total duration: 4s133ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s133ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') 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/38%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' 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-17 09:15:43 Duration: 2s100ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') 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/3858%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' 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-17 09:15:43 Duration: 2s33ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($16) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $17;
Date: 2026-07-17 09:15:42 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
17 4s84ms 2 2s26ms 2s57ms 2s42ms select array_to_string(array_agg(fin_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 #17
Day Hour Count Duration Avg duration Jul 17 09 2 4s84ms 2s42ms [ User: tad - Total duration: 4s84ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s84ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0339461D8574CCFBD6E624AECDE0D0D%') 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 '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:46 Duration: 2s57ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0339461D8574CCFBD6E624AECDE0D0D%') 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/3860%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:47 Duration: 2s26ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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 '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:45 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
18 3s951ms 1 3s951ms 3s951ms 3s951ms update ad_sequence set updated = ?, currentnext = ? where ad_sequence_id = ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 17 09 1 3s951ms 3s951ms [ User: tad - Total duration: 3s951ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 3s951ms - Times executed: 1 ]
-
update AD_Sequence set Updated = '2026-07-17 09:30:46.821', CurrentNext = '1211245' where AD_Sequence_ID = 'FF80818133B7413E0133B716550F002A';
Date: 2026-07-17 09:30:50 Duration: 3s951ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update AD_Sequence set Updated = $1, CurrentNext = $2 where AD_Sequence_ID = $3;
Date: 2026-07-17 09:30:50 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
19 3s292ms 1 3s292ms 3s292ms 3s292ms select b.* from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(amount) as amount, sum(qty) as qty, sum(weight) as weight, sum( cost) as cost, sum(amountref) as amountref, sum(qtyref) as qtyref, sum(weightref) as weightref, sum(convamount) as convamount, case when sum(costcalculated) = ? then sum(convcost) when sum(groupcount) <> sum(costcalculated) then sum(convcost) when sum(costedamt) = ? and sum(convcost) > ? then sum(convcost) when sum( case when groupcount = costcalculated then ? else convamount end) = ? then sum(convcost) else sum(convcost) * sum(convamount) / sum( case when groupcount = costcalculated then ? else convamount end) end as convcost, sum(convamountref) as convamountref, sum(convcostref) as convcostref, c_currency_symbol (?, ?, ?) as convsym, c_currency_isosym (?) as convisosym, sum(zz.costcalculated) as costcalculated from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(linenetamt) as amount, sum(qtyinvoiced) as qty, sum(weight) as weight, sum( cost) as cost, sum(linenetref) as amountref, sum(qtyinvoicedref) as qtyref, sum(weight_ref) as weightref, c_currency_convert (sum(linenetamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as convamount, case when sum(costcalculated) >= ? then sum( cost) when sum(costedamt) = ? and sum( cost) > ? then sum( cost) else sum( cost) * sum(linenetamt) / sum(costedamt) end as convcost, ? as convamountref, ? as convcostref, trcurrencyid, trdate, trclientid, trorgid, sum(aa.costcalculated) as costcalculated, c_currency_convert (sum(costedamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as costedamt, count(*) as groupcount from ( select to_char(ad_column_identifier (to_char(?), to_char(m_product.m_product_id), to_char(?)) || case when uomsymbol is null then ? else to_char(?| | uomsymbol || ?) end) as nivel1, to_char(?) as nivel2, to_char(?) as nivel3, to_char(?) as nivel4, to_char(?) as nivel5, to_char(?) as nivel6, to_char(?) as nivel7, to_char(?) as nivel8, to_char(?) as nivel9, to_char(?) as nivel10, case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end as linenetamt, case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * - ? else c_invoiceline.qtyinvoiced end as qtyinvoiced, c_invoiceline.qtyinvoiced * m_product.weight as weight, ? as linenetref, ? as qtyinvoicedref, ? as weight_ref, c_uom.uomsymbol, c_invoice.c_currency_id as trcurrencyid, to_date(coalesce(c_invoice.dateinvoiced, now())) as trdate, c_invoiceline.ad_client_id as trclientid, c_invoiceline.ad_org_id as trorgid, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else ? end as costcalculated, case when m_product.isstocked = ? and m_product.producttype = ? then case when c_invoiceline.m_inoutline_id is null then coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) when trx.movementqty = ? then ? else case when c_doctype.docbasetype = ? then ? * coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) else coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) end end else coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) end as cost, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end end as costedamt from c_invoiceline join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id join c_bpartner on c_invoice.c_bpartner_id = c_bpartner.c_bpartner_id join c_bp_group on c_bpartner.c_bp_group_id = c_bp_group.c_bp_group_id join ad_org on c_invoice.ad_org_id = ad_org.ad_org_id left join c_bpartner cb on c_bpartner.salesrep_id = cb.c_bpartner_id left join ad_user on c_invoice.salesrep_id = ad_user.ad_user_id left join c_project on c_invoice.c_project_id = c_project.c_project_id left join c_doctype on c_invoice.c_doctype_id = c_doctype.c_doctype_id left join m_product on c_invoiceline.m_product_id = m_product.m_product_id left join c_uom on c_invoiceline.c_uom_id = c_uom.c_uom_id left join m_product_category on m_product.m_product_category_id = m_product_category.m_product_category_id left join m_inoutline on c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id left join m_transaction trx on trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( select m_transaction_id, sum( cost) as total_cost, max(c_currency_id) as c_currency_id from m_transaction_cost group by m_transaction_id) trxcost on trx.m_transaction_id = trxcost.m_transaction_id where c_invoice.issotrx = ? and c_invoice.processed = ? and c_invoice.ad_org_id in (...) and c_invoice.ad_client_id in (...) and ? = ? and c_invoice.dateinvoiced >= to_date(?) and c_invoice.dateinvoiced < to_date(?) and m_product_category.m_product_category_id in (...) and c_doctype.c_doctype_id in (...) group by trxcost.m_transaction_id, c_invoiceline.c_invoiceline_id, c_bpartner.c_bpartner_id, m_product_category.name, c_invoice.documentno, ad_org.name, ad_user.ad_user_id, c_project.name, ad_user.firstname, ad_user.lastname, c_bp_group.name, m_inout.c_bpartner_location_id, c_invoiceline.ad_client_id, c_invoiceline.ad_org_id, c_invoiceline.linenetamt, c_invoiceline.qtyinvoiced, c_uom.uomsymbol, c_doctype.docbasetype, ad_org.ad_org_id, c_invoice.c_currency_id, c_invoice.dateinvoiced, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, m_product.weight, m_product.m_product_id, m_product.isstocked, m_product.producttype, c_invoiceline.m_inoutline_id order by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10) aa group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, trcurrencyid, trdate, trclientid, trorgid) zz group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10 order by nivel1) b limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 17 14 1 3s292ms 3s292ms [ User: tad - Total duration: 3s292ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 3s292ms - Times executed: 1 ]
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('M_Product'), to_char(M_PRODUCT.M_PRODUCT_ID), to_char('es_ES')) || CASE WHEN uomsymbol IS NULL THEN '' ELSE to_char(' (' || uomsymbol || ')') END) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-04-2026') AND C_INVOICE.DATEINVOICED < to_date('01-07-2026') AND M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID IN ('141A561AD5024D4F90BBC7641FD46D9A') AND C_DOCTYPE.C_DOCTYPE_ID IN ('FF80818133B7413E0133B71655240043', '48FB65257B694889964713CD3807750D', 'DFEDA599F1204F65B229EBF58398C1BE', '67C3266D11A04078B7A14AC21E91C711', 'FF80818134469D73013446AD173D000F', 'FF8081813446E6520134A8666CF7078D') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 500001;
Date: 2026-07-17 14:12:42 Duration: 3s292ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 3s71ms 3 1s12ms 1s29ms 1s23ms select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> ? or coalesce(sd.qtyorderonhand, ?) <> ? union all select m_product_id, null, ?, ? from m_product p where p.isgeneric = ?) as ps where ((ps.qtyonhand <> ? and exists ( select ? from m_locator ml where ml.m_locator_id = ps.m_locator_id and exists ( select ? from ad_org_warehouse ow where ml.m_warehouse_id = ow.m_warehouse_id and ow.ad_org_id in (...)))) or (exists ( select ? from m_product mp where ps.m_product_id = mp.m_product_id and mp.isstocked = ? and mp.producttype = ? and ad_client_id = ?))) and not exists ( select ? from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = ?) and exists ( select ? from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = ? and mp.producttype = ? and ad_client_id = ?);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 17 09 1 1s29ms 1s29ms 10 1 1s12ms 1s12ms 11 1 1s29ms 1s29ms [ User: tad - Total duration: 3s71ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s71ms - Times executed: 3 ]
-
select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> 0 OR COALESCE(sd.qtyorderonhand, 0) <> 0 union ALL select m_product_id, null, 0, 0 FROM m_product p WHERE p.isgeneric = 'N') as ps where ((ps.qtyonhand <> 0 AND EXISTS ( SELECT 1 FROM m_locator ml WHERE ml.m_locator_id = ps.m_locator_id AND EXISTS ( SELECT 1 FROM AD_Org_Warehouse ow WHERE ml.m_warehouse_id = ow.m_warehouse_id AND ow.ad_org_id IN ('FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6')))) OR (EXISTS ( SELECT 1 FROM m_product mp WHERE ps.m_product_id = mp.m_product_id AND mp.isstocked = 'N' AND mp.producttype = 'I' AND ad_client_id = 'FF80818133B7413E0133B7164D6A0002'))) AND NOT EXISTS ( select 1 from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = '52ABADF5F9C04311B0A0E8FD21244670') AND exists ( select 1 from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = 'Y' and mp.producttype = 'I' and ad_client_id = 'FF80818133B7413E0133B7164D6A0002');
Date: 2026-07-17 09:00:01 Duration: 1s29ms 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-17 11:00:01 Duration: 1s29ms 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-17 10:00:01 Duration: 1s12ms 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 63 7m33s 6s782ms 11s205ms 7s196ms select * from c_order_post (?);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 08 1 11s205ms 11s205ms 09 6 42s932ms 7s155ms 10 12 1m26s 7s202ms 11 9 1m4s 7s169ms 12 7 49s999ms 7s142ms 13 2 14s316ms 7s158ms 15 3 21s570ms 7s190ms 16 8 55s981ms 6s997ms 17 12 1m24s 7s70ms 18 3 21s561ms 7s187ms [ User: tad - Total duration: 7m33s - Times executed: 63 ]
[ Application: openbravo - Total duration: 7m33s - Times executed: 63 ]
-
SELECT * FROM C_ORDER_POST ('87BE8824B69C419DA5924DA535E9E22A');
Date: 2026-07-17 08:34:16 Duration: 11s205ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('6E36C85B78004860919752DBAE56904C');
Date: 2026-07-17 12:04:02 Duration: 7s459ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('FCBE7A7D8A6746C6A4F67541ED8A3DBA');
Date: 2026-07-17 17:01:50 Duration: 7s431ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 24 30s274ms 1s196ms 1s357ms 1s261ms 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 #2
Day Hour Count Duration Avg duration Jul 17 10 14 17s801ms 1s271ms 17 10 12s472ms 1s247ms [ User: tad - Total duration: 30s274ms - Times executed: 24 ]
[ Application: openbravo - Total duration: 30s274ms - Times executed: 24 ]
-
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('%UFI1232%') or upper(product1_.Value) like upper('%UFI1232%') or upper(product1_.Name) like upper('%UFI1232%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-17 10:31:00 Duration: 1s357ms 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('%PETIT%MATERI%') or upper(product1_.Value) like upper('%PETIT%MATERI%') or upper(product1_.Name) like upper('%PETIT%MATERI%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-17 10:31:53 Duration: 1s320ms 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('%UFI12324%') or upper(product1_.Value) like upper('%UFI12324%') or upper(product1_.Name) like upper('%UFI12324%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-17 10:31:06 Duration: 1s317ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 22 2m33s 6s701ms 7s152ms 6s955ms select * from m_inout_post0 (?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 09 4 27s972ms 6s993ms 11 4 28s33ms 7s8ms 12 4 28s52ms 7s13ms 16 5 34s509ms 6s901ms 17 5 34s459ms 6s891ms [ User: tad - Total duration: 2m33s - Times executed: 22 ]
[ Application: openbravo - Total duration: 2m33s - Times executed: 22 ]
-
SELECT * FROM M_InOut_Post0 ('B398B18BD851495D8B321C475D34F713');
Date: 2026-07-17 12:39:35 Duration: 7s152ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('8A290F6CCAB94B57B57CCBE9F54E69BE');
Date: 2026-07-17 09:43:31 Duration: 7s122ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('0818362DBC264D26B03448853426F1C8');
Date: 2026-07-17 17:28:29 Duration: 7s42ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 15 17s389ms 1s84ms 1s214ms 1s159ms 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 #4
Day Hour Count Duration Avg duration Jul 17 07 1 1s206ms 1s206ms 08 1 1s137ms 1s137ms 09 1 1s211ms 1s211ms 10 1 1s144ms 1s144ms 11 1 1s167ms 1s167ms 12 1 1s176ms 1s176ms 13 1 1s149ms 1s149ms 14 1 1s84ms 1s84ms 15 1 1s214ms 1s214ms 16 1 1s130ms 1s130ms 17 1 1s170ms 1s170ms 18 1 1s133ms 1s133ms 19 1 1s167ms 1s167ms 20 1 1s101ms 1s101ms 21 1 1s192ms 1s192ms [ User: tad - Total duration: 17s389ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 17s389ms - 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-17 15:00:01 Duration: 1s214ms 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-17 09:00:01 Duration: 1s211ms 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-17 07:00:01 Duration: 1s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 8 16s419ms 1s806ms 2s840ms 2s52ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 09 3 5s867ms 1s955ms 13 5 10s552ms 2s110ms [ User: tad - Total duration: 16s419ms - Times executed: 8 ]
[ Application: openbravo - Total duration: 16s419ms - Times executed: 8 ]
-
select array_to_string(array_agg(fin_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 = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%3%') 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-17 13:43:30 Duration: 2s840ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/%') 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-17 09:14:33 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%3590%') 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-17 13:43:30 Duration: 2s19ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 6 6s658ms 1s 1s515ms 1s109ms 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 #6
Day Hour Count Duration Avg duration Jul 17 08 1 1s515ms 1s515ms 11 1 1s80ms 1s80ms 15 3 3s62ms 1s20ms 17 1 1s 1s [ User: tad - Total duration: 6s658ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 6s658ms - Times executed: 6 ]
-
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 = '685E20C464B647FCB1477E28DCB06253';
Date: 2026-07-17 08:30:53 Duration: 1s515ms 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 = '038AF2FA2F04427CAED332404A60E870';
Date: 2026-07-17 11:58:55 Duration: 1s80ms 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 = '6C836A724E2C46D6BEC5A17CBF060CD7';
Date: 2026-07-17 15:15:07 Duration: 1s50ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 5 10s580ms 2s59ms 2s209ms 2s116ms select array_to_string(array_agg(fin_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 #7
Day Hour Count Duration Avg duration Jul 17 09 3 6s460ms 2s153ms 13 2 4s120ms 2s60ms [ User: tad - Total duration: 10s580ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 10s580ms - Times executed: 5 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/385%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:52 Duration: 2s209ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/3857%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:53 Duration: 2s165ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/38%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:52 Duration: 2s86ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 4 8s694ms 1s947ms 2s282ms 2s173ms select array_to_string(array_agg(fin_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 #8
Day Hour Count Duration Avg duration Jul 17 09 3 6s746ms 2s248ms 13 1 1s947ms 1s947ms [ User: tad - Total duration: 8s694ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s694ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/35%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:09 Duration: 2s282ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/359%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:10 Duration: 2s254ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') 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/3595%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:10 Duration: 2s209ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 4 8s278ms 2s14ms 2s158ms 2s69ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ? offset ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 17 09 1 2s40ms 2s40ms 13 3 6s238ms 2s79ms [ User: tad - Total duration: 8s278ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s278ms - 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 max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '200';
Date: 2026-07-17 13:43:29 Duration: 2s158ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-17 13:43:26 Duration: 2s66ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-17 09:14:31 Duration: 2s40ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 3 21s292ms 7s3ms 7s154ms 7s97ms select c_order_post1 (null, ?, ?) as result from dual;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 17 10 2 14s288ms 7s144ms 11 1 7s3ms 7s3ms [ User: tad - Total duration: 21s292ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 21s292ms - Times executed: 3 ]
-
SELECT c_order_post1 (NULL, 'A8A6B52D29EB4E1B82EE48683FB2010D', 'N') AS RESULT FROM DUAL;
Date: 2026-07-17 10:27:21 Duration: 7s154ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, 'D71E4185E42B4658BC24501BB2EDEF69', 'N') AS RESULT FROM DUAL;
Date: 2026-07-17 10:27:33 Duration: 7s134ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, '5EA023F6851A40EA95FBEAFE571D2BB3', 'N') AS RESULT FROM DUAL;
Date: 2026-07-17 11:03:25 Duration: 7s3ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 3 6s517ms 2s133ms 2s229ms 2s172ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 09 1 2s154ms 2s154ms 13 2 4s362ms 2s181ms [ User: tad - Total duration: 6s517ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s517ms - 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_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'D08A1DDB2FF54D0298D1610F694F1336') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 13:37:03 Duration: 2s229ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 09:14:29 Duration: 2s154ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 13:43:24 Duration: 2s133ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 3 6s186ms 1s997ms 2s114ms 2s62ms select array_to_string(array_agg(fin_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 #12
Day Hour Count Duration Avg duration Jul 17 09 1 2s74ms 2s74ms 13 2 4s111ms 2s55ms [ User: tad - Total duration: 6s186ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s186ms - 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 = '30C64733C951418F889EB07A1F7F1DEF') 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 ('70A28361608F4FCEB0CA9D0CC721D0FB', '25DF1E8EC0124061B2485C3032874933', 'FF8BDFF2C87F4083B188715A036FA189') 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('%70A28361608F4FCEB0CA9D0CC721D0FB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%25DF1E8EC0124061B2485C3032874933%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%FF8BDFF2C87F4083B188715A036FA189%') 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('%3843%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%70A28361608F4FCEB0CA9D0CC721D0FB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%25DF1E8EC0124061B2485C3032874933%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FF8BDFF2C87F4083B188715A036FA189%' 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-17 13:44:19 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') 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/3597%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' 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-17 09:15:26 Duration: 2s74ms 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 = '30C64733C951418F889EB07A1F7F1DEF') 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 ('70A28361608F4FCEB0CA9D0CC721D0FB', '25DF1E8EC0124061B2485C3032874933', 'FF8BDFF2C87F4083B188715A036FA189') 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('%70A28361608F4FCEB0CA9D0CC721D0FB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%25DF1E8EC0124061B2485C3032874933%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%FF8BDFF2C87F4083B188715A036FA189%') 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('%384%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%70A28361608F4FCEB0CA9D0CC721D0FB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%25DF1E8EC0124061B2485C3032874933%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FF8BDFF2C87F4083B188715A036FA189%' 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-17 13:44:17 Duration: 1s997ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 3 5s712ms 1s862ms 1s938ms 1s904ms select array_to_string(array_agg(fin_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 #13
Day Hour Count Duration Avg duration Jul 17 09 1 1s938ms 1s938ms 13 2 3s774ms 1s887ms [ User: tad - Total duration: 5s712ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s712ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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-17 09:14:26 Duration: 1s938ms 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 = 'D08A1DDB2FF54D0298D1610F694F1336') 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-17 13:36:59 Duration: 1s911ms 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 = '30C64733C951418F889EB07A1F7F1DEF') 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-17 13:43:21 Duration: 1s862ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 3 3s71ms 1s12ms 1s29ms 1s23ms 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 17 09 1 1s29ms 1s29ms 10 1 1s12ms 1s12ms 11 1 1s29ms 1s29ms [ User: tad - Total duration: 3s71ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s71ms - Times executed: 3 ]
-
select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> 0 OR COALESCE(sd.qtyorderonhand, 0) <> 0 union ALL select m_product_id, null, 0, 0 FROM m_product p WHERE p.isgeneric = 'N') as ps where ((ps.qtyonhand <> 0 AND EXISTS ( SELECT 1 FROM m_locator ml WHERE ml.m_locator_id = ps.m_locator_id AND EXISTS ( SELECT 1 FROM AD_Org_Warehouse ow WHERE ml.m_warehouse_id = ow.m_warehouse_id AND ow.ad_org_id IN ('FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6')))) OR (EXISTS ( SELECT 1 FROM m_product mp WHERE ps.m_product_id = mp.m_product_id AND mp.isstocked = 'N' AND mp.producttype = 'I' AND ad_client_id = 'FF80818133B7413E0133B7164D6A0002'))) AND NOT EXISTS ( select 1 from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = '52ABADF5F9C04311B0A0E8FD21244670') AND exists ( select 1 from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = 'Y' and mp.producttype = 'I' and ad_client_id = 'FF80818133B7413E0133B7164D6A0002');
Date: 2026-07-17 09:00:01 Duration: 1s29ms 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-17 11:00:01 Duration: 1s29ms 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-17 10:00:01 Duration: 1s12ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 2 1m35s 47s541ms 48s271ms 47s906ms 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 #15
Day Hour Count Duration Avg duration Jul 17 08 2 1m35s 47s906ms [ User: tad - Total duration: 1m35s - Times executed: 2 ]
[ Application: openbravo - Total duration: 1m35s - Times executed: 2 ]
-
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 ('66EB72FBDE684A0B890AF7D9CB2A2DE7', '67051C047BA843309AA9A2227E8ECAE4', '67111F086D4F470F9F6B39EB8929ADB3', '6718EA2D30384CDFA6E11373D0F437C2', '673505CF709B49808893B733232E0B2A', '67358E582A4D4620BC1871D0F397426E', '675E28CDC6794D8B95063BE0D76B16C0', '67605D57F59D438EACE18AA657713AD0', '67892B26278040198E52A9A472081759', '6797C4515DA3493F97DC66A8AFC3A0EC', '67AA88876EE24D3B8F1392A2C575E8CA', '67B40C1D72134503943050E180D888AB', '67DBDA4AF67842A5A0C312F786EDEDFE', '67DD2A95F6E84668938D70DB9A35B4FB', '67F3EC12C1DF4789BBED8EFE7AD33D40', '680C40EC7C124803BF699887E7EA5EC4', '6826592F3B694C8B82ED5197396A643D', '68323800ADBA4B37BFA70B97EB4BF89D', '683CF511380A49AC920E319292A4E9A9', '684EB55FFC3C42AEBE2CACD867197036', '685E20C464B647FCB1477E28DCB06253', '688F044CB9234AEFB24CC2032DE129C4', '68B08AED38CE41E3A956E5B116062692', '68D3594DFD1A447A85BB59CEE4904B55', '68F84AEF03B44EE8B7745AB3BBEB3627', '68FDF75F502E4E0ABF4A4AD15B7EBB0B', '6909D929D3074FF89613C7253DDB1BF4', '690BBADA8F604FB391ECA9E265090A9C', '69157E3ABF434392BE2286E96D64DA33', '6915E3AD0DF44399BD3D119E284CC652', '691920D92A0F44759E5217286F45A2F2', '691BB531C31C440480EC243898CEC977', '6928DA7BF84D4925B53A484CAFF8D7E7', '69296FFF69FD48B3A0490F1C6F31CE20', '695BB35110224AEB997FD38663953F32', '6970A3FBF7784640A1C5BA4587A67CB0', '6976A199A1564B498C542C13E3DCBA2C', '6983AEDE07634DD5B22AAB487C235538', '699151A791CD4DEE802FCC694DD8D4FD', '69AD96A007234C77B9CC55E5BBA9711E', '69BF5552F27345A2A503EF15E62C9F06', '69D395B3B9E74AF3B55092DCBC03D8E7', '69E53ECC3AFA43ACAC1A18065C0033DE', '69EFB25DE72C4726904F489B0204234A', '69F26672AA0E458EB59E3451C12B2D4B', '69F55BFBC91044B1B48BC26D1B75939D', '69FC9C3B1FEF49E78580F1EEA338F85D', '69FE46DE1AF34FAC9730CD830EA925FF', '6A158EB06CF444BBAB863535BF002333', '6A3ECF3DF3074BC1B150811D0E72DEAD');
Date: 2026-07-17 08:44:01 Duration: 48s271ms 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 ('6A537614D3214988A776CBD409DC4288', '6A57EC991B2847858EF98F9802A19EA2', '6A582E873F7F4C47A9213F9113519CA0', '6A5DC9754B824A08B3116FAC4262EA8D', '6A74347EA56245C38EFA8BE882F0CF9C', '6A7824EFB02C4519BDF5982B238755E3', '6A85C67CA628479C99377BCFE45C536A', '6A899EA0726C4871B52949321113DA20', '6A9C53B78D774FD8AEB6A57AD3378A00', '6AAC398A3D1A4E198B72DBDF060C5991', '6AEF5D0F9D9D40E994AD2365DF980413', '6AFDC7F9C7174A48A24E3B73AD715F53', '6AFF8BFA550F47A29D93CBF50B31D24F', '6B019FD442EB42ED80B4B1D2EF6F7912', '6B12B74603C64B848C5D56A06497A3C5', '6B1DE3634ACD46D5B7AB660884EDBEC8', '6B2C7D02B5024B2AAE397A312EA6753E', '6B308708E9F24B7C9BC101F422051F3F', '6B3E051AE400441BA3F9A8EEFC94DCC1', '6B465D6E04A1442D81F494DFC7042F49', '6B5B2FD85E554AF68CA81A76A9C5DD39', '6B5D693551AB4828933DE19C2A885204', '6B602361E0334F5CBFA50795D3340522', '6B6E856F4E574A81BE6D97AE39441090', '6B8792B0D824469DB26897B08A4FE202', '6B8CBDF9D2FC4DA0A232D4429D46614C', '6B8ED7438D454B4DAF61D28908B1A420', '6B918DB3C24044738F347579A741868B', '6B9C1B8AE0974618AC0A4B1D985FDBE4', '6B9D3DACBCEB43FEA0E98694D2156FF7', '6BD4E51F3F964583A1CAA4F3DE3B0B51', '6BD86FACBF2A4261AA83E19A8A8CF27F', '6BD8B4C1864E49CAB2D72F6781D62E7D', '6BD8DBB1BF9F45F983F0A01FDC0F857C', '6BEC20EB8F7040F88F5A8E18AD264BF6', '6BF2F910CA9E456BB9B7C49C847F8730', '6BF3696D82D24199975535B29B7C5434', '6C0959DE4D1040D594E03789ED85F8D6', '6C133105819642AE91B089F6506EC606', '6C31C3A2D22D4E4292A3092E1CE8723B', '6C3B30D3FE8E4E279F3634743D8D22A8', '6C4091F3737548BD8A1DECC332EEE0CC', '6C439FD71FE249A2A091B60FE765B176', '6C4B1E9448A5423AAAB3A24A92F7BA3D', '6C5F8A3717C44C5984D86206C44C94A8', '6C6B2ABA2F6E409282C221BBE19A3864', '6C741B5BFD41417D9366DCF1B323E500', '6C77398F2D264E16BF0D2785286CD811', '6C78892DB2DB4905BE756D03086F40DE', '6C7B84CB058641A0AE154BBC9C674309');
Date: 2026-07-17 08:44:48 Duration: 47s541ms 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 ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50);
Date: 2026-07-17 08:43:14 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
16 2 4s389ms 2s178ms 2s210ms 2s194ms select array_to_string(array_agg(fin_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 #16
Day Hour Count Duration Avg duration Jul 17 09 2 4s389ms 2s194ms [ User: tad - Total duration: 4s389ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s389ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') 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/3859%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' 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-17 09:16:05 Duration: 2s210ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') 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/385%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' 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-17 09:16:04 Duration: 2s178ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($17) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $18;
Date: 2026-07-17 09:16:03 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
17 2 4s133ms 2s33ms 2s100ms 2s66ms select array_to_string(array_agg(fin_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 #17
Day Hour Count Duration Avg duration Jul 17 09 2 4s133ms 2s66ms [ User: tad - Total duration: 4s133ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s133ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') 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/38%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' 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-17 09:15:43 Duration: 2s100ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') 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/3858%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' 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-17 09:15:43 Duration: 2s33ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($16) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $17;
Date: 2026-07-17 09:15:42 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
18 2 4s84ms 2s26ms 2s57ms 2s42ms select array_to_string(array_agg(fin_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 #18
Day Hour Count Duration Avg duration Jul 17 09 2 4s84ms 2s42ms [ User: tad - Total duration: 4s84ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s84ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0339461D8574CCFBD6E624AECDE0D0D%') 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 '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:46 Duration: 2s57ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0339461D8574CCFBD6E624AECDE0D0D%') 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/3860%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:47 Duration: 2s26ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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 '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:45 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
19 1 3s951ms 3s951ms 3s951ms 3s951ms update ad_sequence set updated = ?, currentnext = ? where ad_sequence_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 17 09 1 3s951ms 3s951ms [ User: tad - Total duration: 3s951ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 3s951ms - Times executed: 1 ]
-
update AD_Sequence set Updated = '2026-07-17 09:30:46.821', CurrentNext = '1211245' where AD_Sequence_ID = 'FF80818133B7413E0133B716550F002A';
Date: 2026-07-17 09:30:50 Duration: 3s951ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update AD_Sequence set Updated = $1, CurrentNext = $2 where AD_Sequence_ID = $3;
Date: 2026-07-17 09:30:50 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
20 1 3s292ms 3s292ms 3s292ms 3s292ms select b.* from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(amount) as amount, sum(qty) as qty, sum(weight) as weight, sum( cost) as cost, sum(amountref) as amountref, sum(qtyref) as qtyref, sum(weightref) as weightref, sum(convamount) as convamount, case when sum(costcalculated) = ? then sum(convcost) when sum(groupcount) <> sum(costcalculated) then sum(convcost) when sum(costedamt) = ? and sum(convcost) > ? then sum(convcost) when sum( case when groupcount = costcalculated then ? else convamount end) = ? then sum(convcost) else sum(convcost) * sum(convamount) / sum( case when groupcount = costcalculated then ? else convamount end) end as convcost, sum(convamountref) as convamountref, sum(convcostref) as convcostref, c_currency_symbol (?, ?, ?) as convsym, c_currency_isosym (?) as convisosym, sum(zz.costcalculated) as costcalculated from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(linenetamt) as amount, sum(qtyinvoiced) as qty, sum(weight) as weight, sum( cost) as cost, sum(linenetref) as amountref, sum(qtyinvoicedref) as qtyref, sum(weight_ref) as weightref, c_currency_convert (sum(linenetamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as convamount, case when sum(costcalculated) >= ? then sum( cost) when sum(costedamt) = ? and sum( cost) > ? then sum( cost) else sum( cost) * sum(linenetamt) / sum(costedamt) end as convcost, ? as convamountref, ? as convcostref, trcurrencyid, trdate, trclientid, trorgid, sum(aa.costcalculated) as costcalculated, c_currency_convert (sum(costedamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as costedamt, count(*) as groupcount from ( select to_char(ad_column_identifier (to_char(?), to_char(m_product.m_product_id), to_char(?)) || case when uomsymbol is null then ? else to_char(?| | uomsymbol || ?) end) as nivel1, to_char(?) as nivel2, to_char(?) as nivel3, to_char(?) as nivel4, to_char(?) as nivel5, to_char(?) as nivel6, to_char(?) as nivel7, to_char(?) as nivel8, to_char(?) as nivel9, to_char(?) as nivel10, case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end as linenetamt, case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * - ? else c_invoiceline.qtyinvoiced end as qtyinvoiced, c_invoiceline.qtyinvoiced * m_product.weight as weight, ? as linenetref, ? as qtyinvoicedref, ? as weight_ref, c_uom.uomsymbol, c_invoice.c_currency_id as trcurrencyid, to_date(coalesce(c_invoice.dateinvoiced, now())) as trdate, c_invoiceline.ad_client_id as trclientid, c_invoiceline.ad_org_id as trorgid, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else ? end as costcalculated, case when m_product.isstocked = ? and m_product.producttype = ? then case when c_invoiceline.m_inoutline_id is null then coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) when trx.movementqty = ? then ? else case when c_doctype.docbasetype = ? then ? * coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) else coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) end end else coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) end as cost, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end end as costedamt from c_invoiceline join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id join c_bpartner on c_invoice.c_bpartner_id = c_bpartner.c_bpartner_id join c_bp_group on c_bpartner.c_bp_group_id = c_bp_group.c_bp_group_id join ad_org on c_invoice.ad_org_id = ad_org.ad_org_id left join c_bpartner cb on c_bpartner.salesrep_id = cb.c_bpartner_id left join ad_user on c_invoice.salesrep_id = ad_user.ad_user_id left join c_project on c_invoice.c_project_id = c_project.c_project_id left join c_doctype on c_invoice.c_doctype_id = c_doctype.c_doctype_id left join m_product on c_invoiceline.m_product_id = m_product.m_product_id left join c_uom on c_invoiceline.c_uom_id = c_uom.c_uom_id left join m_product_category on m_product.m_product_category_id = m_product_category.m_product_category_id left join m_inoutline on c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id left join m_transaction trx on trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( select m_transaction_id, sum( cost) as total_cost, max(c_currency_id) as c_currency_id from m_transaction_cost group by m_transaction_id) trxcost on trx.m_transaction_id = trxcost.m_transaction_id where c_invoice.issotrx = ? and c_invoice.processed = ? and c_invoice.ad_org_id in (...) and c_invoice.ad_client_id in (...) and ? = ? and c_invoice.dateinvoiced >= to_date(?) and c_invoice.dateinvoiced < to_date(?) and m_product_category.m_product_category_id in (...) and c_doctype.c_doctype_id in (...) group by trxcost.m_transaction_id, c_invoiceline.c_invoiceline_id, c_bpartner.c_bpartner_id, m_product_category.name, c_invoice.documentno, ad_org.name, ad_user.ad_user_id, c_project.name, ad_user.firstname, ad_user.lastname, c_bp_group.name, m_inout.c_bpartner_location_id, c_invoiceline.ad_client_id, c_invoiceline.ad_org_id, c_invoiceline.linenetamt, c_invoiceline.qtyinvoiced, c_uom.uomsymbol, c_doctype.docbasetype, ad_org.ad_org_id, c_invoice.c_currency_id, c_invoice.dateinvoiced, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, m_product.weight, m_product.m_product_id, m_product.isstocked, m_product.producttype, c_invoiceline.m_inoutline_id order by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10) aa group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, trcurrencyid, trdate, trclientid, trorgid) zz group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10 order by nivel1) b limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 17 14 1 3s292ms 3s292ms [ User: tad - Total duration: 3s292ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 3s292ms - Times executed: 1 ]
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('M_Product'), to_char(M_PRODUCT.M_PRODUCT_ID), to_char('es_ES')) || CASE WHEN uomsymbol IS NULL THEN '' ELSE to_char(' (' || uomsymbol || ')') END) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-04-2026') AND C_INVOICE.DATEINVOICED < to_date('01-07-2026') AND M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID IN ('141A561AD5024D4F90BBC7641FD46D9A') AND C_DOCTYPE.C_DOCTYPE_ID IN ('FF80818133B7413E0133B71655240043', '48FB65257B694889964713CD3807750D', 'DFEDA599F1204F65B229EBF58398C1BE', '67C3266D11A04078B7A14AC21E91C711', 'FF80818134469D73013446AD173D000F', 'FF8081813446E6520134A8666CF7078D') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 500001;
Date: 2026-07-17 14:12:42 Duration: 3s292ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 47s541ms 48s271ms 47s906ms 2 1m35s 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 17 08 2 1m35s 47s906ms [ User: tad - Total duration: 1m35s - Times executed: 2 ]
[ Application: openbravo - Total duration: 1m35s - Times executed: 2 ]
-
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 ('66EB72FBDE684A0B890AF7D9CB2A2DE7', '67051C047BA843309AA9A2227E8ECAE4', '67111F086D4F470F9F6B39EB8929ADB3', '6718EA2D30384CDFA6E11373D0F437C2', '673505CF709B49808893B733232E0B2A', '67358E582A4D4620BC1871D0F397426E', '675E28CDC6794D8B95063BE0D76B16C0', '67605D57F59D438EACE18AA657713AD0', '67892B26278040198E52A9A472081759', '6797C4515DA3493F97DC66A8AFC3A0EC', '67AA88876EE24D3B8F1392A2C575E8CA', '67B40C1D72134503943050E180D888AB', '67DBDA4AF67842A5A0C312F786EDEDFE', '67DD2A95F6E84668938D70DB9A35B4FB', '67F3EC12C1DF4789BBED8EFE7AD33D40', '680C40EC7C124803BF699887E7EA5EC4', '6826592F3B694C8B82ED5197396A643D', '68323800ADBA4B37BFA70B97EB4BF89D', '683CF511380A49AC920E319292A4E9A9', '684EB55FFC3C42AEBE2CACD867197036', '685E20C464B647FCB1477E28DCB06253', '688F044CB9234AEFB24CC2032DE129C4', '68B08AED38CE41E3A956E5B116062692', '68D3594DFD1A447A85BB59CEE4904B55', '68F84AEF03B44EE8B7745AB3BBEB3627', '68FDF75F502E4E0ABF4A4AD15B7EBB0B', '6909D929D3074FF89613C7253DDB1BF4', '690BBADA8F604FB391ECA9E265090A9C', '69157E3ABF434392BE2286E96D64DA33', '6915E3AD0DF44399BD3D119E284CC652', '691920D92A0F44759E5217286F45A2F2', '691BB531C31C440480EC243898CEC977', '6928DA7BF84D4925B53A484CAFF8D7E7', '69296FFF69FD48B3A0490F1C6F31CE20', '695BB35110224AEB997FD38663953F32', '6970A3FBF7784640A1C5BA4587A67CB0', '6976A199A1564B498C542C13E3DCBA2C', '6983AEDE07634DD5B22AAB487C235538', '699151A791CD4DEE802FCC694DD8D4FD', '69AD96A007234C77B9CC55E5BBA9711E', '69BF5552F27345A2A503EF15E62C9F06', '69D395B3B9E74AF3B55092DCBC03D8E7', '69E53ECC3AFA43ACAC1A18065C0033DE', '69EFB25DE72C4726904F489B0204234A', '69F26672AA0E458EB59E3451C12B2D4B', '69F55BFBC91044B1B48BC26D1B75939D', '69FC9C3B1FEF49E78580F1EEA338F85D', '69FE46DE1AF34FAC9730CD830EA925FF', '6A158EB06CF444BBAB863535BF002333', '6A3ECF3DF3074BC1B150811D0E72DEAD');
Date: 2026-07-17 08:44:01 Duration: 48s271ms 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 ('6A537614D3214988A776CBD409DC4288', '6A57EC991B2847858EF98F9802A19EA2', '6A582E873F7F4C47A9213F9113519CA0', '6A5DC9754B824A08B3116FAC4262EA8D', '6A74347EA56245C38EFA8BE882F0CF9C', '6A7824EFB02C4519BDF5982B238755E3', '6A85C67CA628479C99377BCFE45C536A', '6A899EA0726C4871B52949321113DA20', '6A9C53B78D774FD8AEB6A57AD3378A00', '6AAC398A3D1A4E198B72DBDF060C5991', '6AEF5D0F9D9D40E994AD2365DF980413', '6AFDC7F9C7174A48A24E3B73AD715F53', '6AFF8BFA550F47A29D93CBF50B31D24F', '6B019FD442EB42ED80B4B1D2EF6F7912', '6B12B74603C64B848C5D56A06497A3C5', '6B1DE3634ACD46D5B7AB660884EDBEC8', '6B2C7D02B5024B2AAE397A312EA6753E', '6B308708E9F24B7C9BC101F422051F3F', '6B3E051AE400441BA3F9A8EEFC94DCC1', '6B465D6E04A1442D81F494DFC7042F49', '6B5B2FD85E554AF68CA81A76A9C5DD39', '6B5D693551AB4828933DE19C2A885204', '6B602361E0334F5CBFA50795D3340522', '6B6E856F4E574A81BE6D97AE39441090', '6B8792B0D824469DB26897B08A4FE202', '6B8CBDF9D2FC4DA0A232D4429D46614C', '6B8ED7438D454B4DAF61D28908B1A420', '6B918DB3C24044738F347579A741868B', '6B9C1B8AE0974618AC0A4B1D985FDBE4', '6B9D3DACBCEB43FEA0E98694D2156FF7', '6BD4E51F3F964583A1CAA4F3DE3B0B51', '6BD86FACBF2A4261AA83E19A8A8CF27F', '6BD8B4C1864E49CAB2D72F6781D62E7D', '6BD8DBB1BF9F45F983F0A01FDC0F857C', '6BEC20EB8F7040F88F5A8E18AD264BF6', '6BF2F910CA9E456BB9B7C49C847F8730', '6BF3696D82D24199975535B29B7C5434', '6C0959DE4D1040D594E03789ED85F8D6', '6C133105819642AE91B089F6506EC606', '6C31C3A2D22D4E4292A3092E1CE8723B', '6C3B30D3FE8E4E279F3634743D8D22A8', '6C4091F3737548BD8A1DECC332EEE0CC', '6C439FD71FE249A2A091B60FE765B176', '6C4B1E9448A5423AAAB3A24A92F7BA3D', '6C5F8A3717C44C5984D86206C44C94A8', '6C6B2ABA2F6E409282C221BBE19A3864', '6C741B5BFD41417D9366DCF1B323E500', '6C77398F2D264E16BF0D2785286CD811', '6C78892DB2DB4905BE756D03086F40DE', '6C7B84CB058641A0AE154BBC9C674309');
Date: 2026-07-17 08:44:48 Duration: 47s541ms 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 ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50);
Date: 2026-07-17 08:43:14 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 6s782ms 11s205ms 7s196ms 63 7m33s select * from c_order_post (?);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 08 1 11s205ms 11s205ms 09 6 42s932ms 7s155ms 10 12 1m26s 7s202ms 11 9 1m4s 7s169ms 12 7 49s999ms 7s142ms 13 2 14s316ms 7s158ms 15 3 21s570ms 7s190ms 16 8 55s981ms 6s997ms 17 12 1m24s 7s70ms 18 3 21s561ms 7s187ms [ User: tad - Total duration: 7m33s - Times executed: 63 ]
[ Application: openbravo - Total duration: 7m33s - Times executed: 63 ]
-
SELECT * FROM C_ORDER_POST ('87BE8824B69C419DA5924DA535E9E22A');
Date: 2026-07-17 08:34:16 Duration: 11s205ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('6E36C85B78004860919752DBAE56904C');
Date: 2026-07-17 12:04:02 Duration: 7s459ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('FCBE7A7D8A6746C6A4F67541ED8A3DBA');
Date: 2026-07-17 17:01:50 Duration: 7s431ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 7s3ms 7s154ms 7s97ms 3 21s292ms select c_order_post1 (null, ?, ?) as result from dual;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 10 2 14s288ms 7s144ms 11 1 7s3ms 7s3ms [ User: tad - Total duration: 21s292ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 21s292ms - Times executed: 3 ]
-
SELECT c_order_post1 (NULL, 'A8A6B52D29EB4E1B82EE48683FB2010D', 'N') AS RESULT FROM DUAL;
Date: 2026-07-17 10:27:21 Duration: 7s154ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, 'D71E4185E42B4658BC24501BB2EDEF69', 'N') AS RESULT FROM DUAL;
Date: 2026-07-17 10:27:33 Duration: 7s134ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT c_order_post1 (NULL, '5EA023F6851A40EA95FBEAFE571D2BB3', 'N') AS RESULT FROM DUAL;
Date: 2026-07-17 11:03:25 Duration: 7s3ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 6s701ms 7s152ms 6s955ms 22 2m33s select * from m_inout_post0 (?);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 17 09 4 27s972ms 6s993ms 11 4 28s33ms 7s8ms 12 4 28s52ms 7s13ms 16 5 34s509ms 6s901ms 17 5 34s459ms 6s891ms [ User: tad - Total duration: 2m33s - Times executed: 22 ]
[ Application: openbravo - Total duration: 2m33s - Times executed: 22 ]
-
SELECT * FROM M_InOut_Post0 ('B398B18BD851495D8B321C475D34F713');
Date: 2026-07-17 12:39:35 Duration: 7s152ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('8A290F6CCAB94B57B57CCBE9F54E69BE');
Date: 2026-07-17 09:43:31 Duration: 7s122ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM M_InOut_Post0 ('0818362DBC264D26B03448853426F1C8');
Date: 2026-07-17 17:28:29 Duration: 7s42ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 3s951ms 3s951ms 3s951ms 1 3s951ms update ad_sequence set updated = ?, currentnext = ? where ad_sequence_id = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 09 1 3s951ms 3s951ms [ User: tad - Total duration: 3s951ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 3s951ms - Times executed: 1 ]
-
update AD_Sequence set Updated = '2026-07-17 09:30:46.821', CurrentNext = '1211245' where AD_Sequence_ID = 'FF80818133B7413E0133B716550F002A';
Date: 2026-07-17 09:30:50 Duration: 3s951ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
update AD_Sequence set Updated = $1, CurrentNext = $2 where AD_Sequence_ID = $3;
Date: 2026-07-17 09:30:50 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
6 3s292ms 3s292ms 3s292ms 1 3s292ms select b.* from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(amount) as amount, sum(qty) as qty, sum(weight) as weight, sum( cost) as cost, sum(amountref) as amountref, sum(qtyref) as qtyref, sum(weightref) as weightref, sum(convamount) as convamount, case when sum(costcalculated) = ? then sum(convcost) when sum(groupcount) <> sum(costcalculated) then sum(convcost) when sum(costedamt) = ? and sum(convcost) > ? then sum(convcost) when sum( case when groupcount = costcalculated then ? else convamount end) = ? then sum(convcost) else sum(convcost) * sum(convamount) / sum( case when groupcount = costcalculated then ? else convamount end) end as convcost, sum(convamountref) as convamountref, sum(convcostref) as convcostref, c_currency_symbol (?, ?, ?) as convsym, c_currency_isosym (?) as convisosym, sum(zz.costcalculated) as costcalculated from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(linenetamt) as amount, sum(qtyinvoiced) as qty, sum(weight) as weight, sum( cost) as cost, sum(linenetref) as amountref, sum(qtyinvoicedref) as qtyref, sum(weight_ref) as weightref, c_currency_convert (sum(linenetamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as convamount, case when sum(costcalculated) >= ? then sum( cost) when sum(costedamt) = ? and sum( cost) > ? then sum( cost) else sum( cost) * sum(linenetamt) / sum(costedamt) end as convcost, ? as convamountref, ? as convcostref, trcurrencyid, trdate, trclientid, trorgid, sum(aa.costcalculated) as costcalculated, c_currency_convert (sum(costedamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as costedamt, count(*) as groupcount from ( select to_char(ad_column_identifier (to_char(?), to_char(m_product.m_product_id), to_char(?)) || case when uomsymbol is null then ? else to_char(?| | uomsymbol || ?) end) as nivel1, to_char(?) as nivel2, to_char(?) as nivel3, to_char(?) as nivel4, to_char(?) as nivel5, to_char(?) as nivel6, to_char(?) as nivel7, to_char(?) as nivel8, to_char(?) as nivel9, to_char(?) as nivel10, case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end as linenetamt, case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * - ? else c_invoiceline.qtyinvoiced end as qtyinvoiced, c_invoiceline.qtyinvoiced * m_product.weight as weight, ? as linenetref, ? as qtyinvoicedref, ? as weight_ref, c_uom.uomsymbol, c_invoice.c_currency_id as trcurrencyid, to_date(coalesce(c_invoice.dateinvoiced, now())) as trdate, c_invoiceline.ad_client_id as trclientid, c_invoiceline.ad_org_id as trorgid, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else ? end as costcalculated, case when m_product.isstocked = ? and m_product.producttype = ? then case when c_invoiceline.m_inoutline_id is null then coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) when trx.movementqty = ? then ? else case when c_doctype.docbasetype = ? then ? * coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) else coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) end end else coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) end as cost, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end end as costedamt from c_invoiceline join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id join c_bpartner on c_invoice.c_bpartner_id = c_bpartner.c_bpartner_id join c_bp_group on c_bpartner.c_bp_group_id = c_bp_group.c_bp_group_id join ad_org on c_invoice.ad_org_id = ad_org.ad_org_id left join c_bpartner cb on c_bpartner.salesrep_id = cb.c_bpartner_id left join ad_user on c_invoice.salesrep_id = ad_user.ad_user_id left join c_project on c_invoice.c_project_id = c_project.c_project_id left join c_doctype on c_invoice.c_doctype_id = c_doctype.c_doctype_id left join m_product on c_invoiceline.m_product_id = m_product.m_product_id left join c_uom on c_invoiceline.c_uom_id = c_uom.c_uom_id left join m_product_category on m_product.m_product_category_id = m_product_category.m_product_category_id left join m_inoutline on c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id left join m_transaction trx on trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( select m_transaction_id, sum( cost) as total_cost, max(c_currency_id) as c_currency_id from m_transaction_cost group by m_transaction_id) trxcost on trx.m_transaction_id = trxcost.m_transaction_id where c_invoice.issotrx = ? and c_invoice.processed = ? and c_invoice.ad_org_id in (...) and c_invoice.ad_client_id in (...) and ? = ? and c_invoice.dateinvoiced >= to_date(?) and c_invoice.dateinvoiced < to_date(?) and m_product_category.m_product_category_id in (...) and c_doctype.c_doctype_id in (...) group by trxcost.m_transaction_id, c_invoiceline.c_invoiceline_id, c_bpartner.c_bpartner_id, m_product_category.name, c_invoice.documentno, ad_org.name, ad_user.ad_user_id, c_project.name, ad_user.firstname, ad_user.lastname, c_bp_group.name, m_inout.c_bpartner_location_id, c_invoiceline.ad_client_id, c_invoiceline.ad_org_id, c_invoiceline.linenetamt, c_invoiceline.qtyinvoiced, c_uom.uomsymbol, c_doctype.docbasetype, ad_org.ad_org_id, c_invoice.c_currency_id, c_invoice.dateinvoiced, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, m_product.weight, m_product.m_product_id, m_product.isstocked, m_product.producttype, c_invoiceline.m_inoutline_id order by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10) aa group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, trcurrencyid, trdate, trclientid, trorgid) zz group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10 order by nivel1) b limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 17 14 1 3s292ms 3s292ms [ User: tad - Total duration: 3s292ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 3s292ms - Times executed: 1 ]
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('M_Product'), to_char(M_PRODUCT.M_PRODUCT_ID), to_char('es_ES')) || CASE WHEN uomsymbol IS NULL THEN '' ELSE to_char(' (' || uomsymbol || ')') END) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('FF80818134D2AA330134F1D11B372783', 'FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6', '96BD3AC81C95427788B46A17146F4F7B', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'FF80818133B7413E0133B7164D6A0002') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-04-2026') AND C_INVOICE.DATEINVOICED < to_date('01-07-2026') AND M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID IN ('141A561AD5024D4F90BBC7641FD46D9A') AND C_DOCTYPE.C_DOCTYPE_ID IN ('FF80818133B7413E0133B71655240043', '48FB65257B694889964713CD3807750D', 'DFEDA599F1204F65B229EBF58398C1BE', '67C3266D11A04078B7A14AC21E91C711', 'FF80818134469D73013446AD173D000F', 'FF8081813446E6520134A8666CF7078D') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 500001;
Date: 2026-07-17 14:12:42 Duration: 3s292ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 2s178ms 2s210ms 2s194ms 2 4s389ms select array_to_string(array_agg(fin_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 #7
Day Hour Count Duration Avg duration Jul 17 09 2 4s389ms 2s194ms [ User: tad - Total duration: 4s389ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s389ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') 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/3859%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' 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-17 09:16:05 Duration: 2s210ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') 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/385%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' 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-17 09:16:04 Duration: 2s178ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($16) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($17) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $18;
Date: 2026-07-17 09:16:03 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
8 1s947ms 2s282ms 2s173ms 4 8s694ms select array_to_string(array_agg(fin_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 #8
Day Hour Count Duration Avg duration Jul 17 09 3 6s746ms 2s248ms 13 1 1s947ms 1s947ms [ User: tad - Total duration: 8s694ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s694ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/35%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:09 Duration: 2s282ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/359%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:10 Duration: 2s254ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') 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/3595%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' 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-17 09:15:10 Duration: 2s209ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 2s133ms 2s229ms 2s172ms 3 6s517ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 17 09 1 2s154ms 2s154ms 13 2 4s362ms 2s181ms [ User: tad - Total duration: 6s517ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s517ms - 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_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'D08A1DDB2FF54D0298D1610F694F1336') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 13:37:03 Duration: 2s229ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 09:14:29 Duration: 2s154ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101';
Date: 2026-07-17 13:43:24 Duration: 2s133ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 2s59ms 2s209ms 2s116ms 5 10s580ms select array_to_string(array_agg(fin_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 #10
Day Hour Count Duration Avg duration Jul 17 09 3 6s460ms 2s153ms 13 2 4s120ms 2s60ms [ User: tad - Total duration: 10s580ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 10s580ms - Times executed: 5 ]
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/385%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:52 Duration: 2s209ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/3857%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:53 Duration: 2s165ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171') 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('%4ABF368BF2E64ACD960390E148C23171%') 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/38%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' 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-17 09:14:52 Duration: 2s86ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 2s14ms 2s158ms 2s69ms 4 8s278ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.ad_org_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ? offset ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 09 1 2s40ms 2s40ms 13 3 6s238ms 2s79ms [ User: tad - Total duration: 8s278ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 8s278ms - 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 max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '200';
Date: 2026-07-17 13:43:29 Duration: 2s158ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-17 13:43:26 Duration: 2s66ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.AD_Org_ID in ('0', 'FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit '101' offset '100';
Date: 2026-07-17 09:14:31 Duration: 2s40ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 2s33ms 2s100ms 2s66ms 2 4s133ms select array_to_string(array_agg(fin_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 #12
Day Hour Count Duration Avg duration Jul 17 09 2 4s133ms 2s66ms [ User: tad - Total duration: 4s133ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s133ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') 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/38%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' 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-17 09:15:43 Duration: 2s100ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') 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/3858%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' 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-17 09:15:43 Duration: 2s33ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D') or invoice7_.IsSOTrx = $10 and invoice7_.C_Currency_ID = $11) group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($12) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($13) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($14) escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper($15) escape '|' or upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper($16) escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' then 0 else 1 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $17;
Date: 2026-07-17 09:15:42 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
13 1s997ms 2s114ms 2s62ms 3 6s186ms select array_to_string(array_agg(fin_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 17 09 1 2s74ms 2s74ms 13 2 4s111ms 2s55ms [ User: tad - Total duration: 6s186ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 6s186ms - 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 = '30C64733C951418F889EB07A1F7F1DEF') 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 ('70A28361608F4FCEB0CA9D0CC721D0FB', '25DF1E8EC0124061B2485C3032874933', 'FF8BDFF2C87F4083B188715A036FA189') 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('%70A28361608F4FCEB0CA9D0CC721D0FB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%25DF1E8EC0124061B2485C3032874933%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%FF8BDFF2C87F4083B188715A036FA189%') 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('%3843%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%70A28361608F4FCEB0CA9D0CC721D0FB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%25DF1E8EC0124061B2485C3032874933%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FF8BDFF2C87F4083B188715A036FA189%' 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-17 13:44:19 Duration: 2s114ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when 1 < 0 then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') 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/3597%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' 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-17 09:15:26 Duration: 2s74ms 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 = '30C64733C951418F889EB07A1F7F1DEF') 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 ('70A28361608F4FCEB0CA9D0CC721D0FB', '25DF1E8EC0124061B2485C3032874933', 'FF8BDFF2C87F4083B188715A036FA189') 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('%70A28361608F4FCEB0CA9D0CC721D0FB%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%25DF1E8EC0124061B2485C3032874933%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%FF8BDFF2C87F4083B188715A036FA189%') 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('%384%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%70A28361608F4FCEB0CA9D0CC721D0FB%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%25DF1E8EC0124061B2485C3032874933%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%FF8BDFF2C87F4083B188715A036FA189%' 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-17 13:44:17 Duration: 1s997ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 1s806ms 2s840ms 2s52ms 8 16s419ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when max(fin_paymen13_.fin_payment_id) is not null then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and invoice7_.issotrx = ? and invoice7_.c_currency_id = ? group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when max(fin_paymen13_.fin_payment_id) is not null then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 17 09 3 5s867ms 1s955ms 13 5 10s552ms 2s110ms [ User: tad - Total duration: 16s419ms - Times executed: 8 ]
[ Application: openbravo - Total duration: 16s419ms - Times executed: 8 ]
-
select array_to_string(array_agg(fin_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 = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%3%') 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-17 13:43:30 Duration: 2s840ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%26/%') 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-17 09:14:33 Duration: 2s29ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), ',') as col_1_0_, case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, 0)) as col_7_0_, aduser14_.UserName as col_8_0_, aduser16_.UserName as col_9_0_, invoice7_.Created as col_10_0_, invoice7_.Updated as col_11_0_, businesspa1_.C_BPartner_ID as col_12_0_, businesspa1_.Name as col_13_0_, sum(fin_paymen0_.Amount + fin_paymen0_.Writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.Amount), 0) as col_15_0_, case when sum(fin_paymen0_.Writeoffamt) <> 0 then true else false end as col_16_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then true else false end as col_17_0_, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) as col_18_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID = businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order = fin_paymen2_.Fin_Payment_Schedule_ID left outer join C_Order order3_ on fin_paymen2_.C_Order_ID = order3_.C_Order_ID and (order3_.IsSOTrx = 'Y' and order3_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen4_ on fin_paymen2_.FIN_Payment_Priority_ID = fin_paymen4_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen5_ on fin_paymen2_.Fin_Paymentmethod_ID = fin_paymen5_.Fin_Paymentmethod_ID left outer join FIN_Payment_Schedule fin_paymen6_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen6_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice7_ on fin_paymen6_.C_Invoice_ID = invoice7_.C_Invoice_ID and (invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102') left outer join FIN_Payment_Priority fin_paymen8_ on fin_paymen6_.FIN_Payment_Priority_ID = fin_paymen8_.FIN_Payment_Priority_ID left outer join FIN_PaymentMethod fin_paymen9_ on fin_paymen6_.Fin_Paymentmethod_ID = fin_paymen9_.Fin_Paymentmethod_ID left outer join AD_Org organizati10_ on fin_paymen0_.AD_Org_ID = organizati10_.AD_Org_ID left outer join AD_OrgInfo organizati11_ on organizati10_.AD_Org_ID = organizati11_.AD_Org_ID left outer join FIN_Payment_Detail fin_paymen12_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen12_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen13_ on fin_paymen12_.Fin_Payment_ID = fin_paymen13_.Fin_Payment_ID left outer join AD_User aduser14_ on invoice7_.CreatedBy = aduser14_.AD_User_ID left outer join AD_User aduser15_ on order3_.CreatedBy = aduser15_.AD_User_ID left outer join AD_User aduser16_ on invoice7_.UpdatedBy = aduser16_.AD_User_ID left outer join AD_User aduser17_ on order3_.UpdatedBy = aduser17_.AD_User_ID left outer join C_BP_BankAccount businesspa18_ on invoice7_.EM_Etabam_Bankaccount_ID = businesspa18_.C_BP_BankAccount_ID left outer join C_BP_BankAccount businesspa19_ on order3_.EM_Etabam_Bankaccount_ID = businesspa19_.C_BP_BankAccount_ID where (fin_paymen0_.AD_Client_ID in ('0', 'FF80818133B7413E0133B7164D6A0002')) and (fin_paymen0_.FIN_Payment_Detail_ID is null or fin_paymen13_.Fin_Payment_ID = '30C64733C951418F889EB07A1F7F1DEF') and (coalesce(fin_paymen6_.Fin_Payment_Schedule_ID, fin_paymen2_.Fin_Payment_Schedule_ID) is not null) and (fin_paymen0_.AD_Org_ID in ('FF80818134D2AA330134F1D03034277D', 'FF80818134D2AA330134F1D11B372783', 'FF80818133B7413E0133B71974AD28C6')) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive = 'Y') and invoice7_.IsSOTrx = 'Y' and invoice7_.C_Currency_ID = '102' group by invoice7_.C_Invoice_ID, invoice7_.DocumentNo, invoice7_.C_DocType_ID, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID), coalesce(fin_paymen9_.Name, fin_paymen5_.Name), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), invoice7_.IsSOTrx, organizati11_.AD_Org_ID, organizati11_.EM_Aprm_Payment_Desc, invoice7_.POReference, aduser14_.UserName, aduser16_.UserName, invoice7_.Created, invoice7_.Updated, businesspa1_.C_BPartner_ID, businesspa1_.Name, coalesce(businesspa18_.AccountNo, businesspa19_.AccountNo) having upper( case when invoice7_.IsSOTrx = 'N' and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like 'Supplier Reference') then invoice7_.POReference else invoice7_.DocumentNo end) like upper('%3590%') 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-17 13:43:30 Duration: 2s19ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 2s26ms 2s57ms 2s42ms 2 4s84ms select array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) as col_0_0_, array_to_string(array_agg(order3_.documentno), ?) as col_1_0_, case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end as col_2_0_, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id) as col_3_0_, coalesce(fin_paymen9_.name, fin_paymen5_.name) as col_4_0_, coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate) as col_5_0_, max(coalesce(fin_paymen6_.amount, fin_paymen2_.amount)) as col_6_0_, max(coalesce(invoice7_.grandtotal, ?)) as col_7_0_, aduser14_.username as col_8_0_, aduser16_.username as col_9_0_, invoice7_.created as col_10_0_, invoice7_.updated as col_11_0_, businesspa1_.c_bpartner_id as col_12_0_, businesspa1_.name as col_13_0_, sum(fin_paymen0_.amount + fin_paymen0_.writeoffamt) as col_14_0_, coalesce(sum(fin_paymen12_.amount), ?) as col_15_0_, case when sum(fin_paymen0_.writeoffamt) <> ? then true else false end as col_16_0_, case when ? < ? then true else false end as col_17_0_, coalesce(businesspa18_.accountno, businesspa19_.accountno) as col_18_0_ from fin_payment_scheduledetail fin_paymen0_ inner join c_bpartner businesspa1_ on fin_paymen0_.c_bpartner_id = businesspa1_.c_bpartner_id left outer join fin_payment_schedule fin_paymen2_ on fin_paymen0_.fin_payment_schedule_order = fin_paymen2_.fin_payment_schedule_id left outer join c_order order3_ on fin_paymen2_.c_order_id = order3_.c_order_id and (order3_.issotrx = ? and order3_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen4_ on fin_paymen2_.fin_payment_priority_id = fin_paymen4_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen5_ on fin_paymen2_.fin_paymentmethod_id = fin_paymen5_.fin_paymentmethod_id left outer join fin_payment_schedule fin_paymen6_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen6_.fin_payment_schedule_id left outer join c_invoice invoice7_ on fin_paymen6_.c_invoice_id = invoice7_.c_invoice_id and (invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) left outer join fin_payment_priority fin_paymen8_ on fin_paymen6_.fin_payment_priority_id = fin_paymen8_.fin_payment_priority_id left outer join fin_paymentmethod fin_paymen9_ on fin_paymen6_.fin_paymentmethod_id = fin_paymen9_.fin_paymentmethod_id left outer join ad_org organizati10_ on fin_paymen0_.ad_org_id = organizati10_.ad_org_id left outer join ad_orginfo organizati11_ on organizati10_.ad_org_id = organizati11_.ad_org_id left outer join fin_payment_detail fin_paymen12_ on fin_paymen0_.fin_payment_detail_id = fin_paymen12_.fin_payment_detail_id left outer join fin_payment fin_paymen13_ on fin_paymen12_.fin_payment_id = fin_paymen13_.fin_payment_id left outer join ad_user aduser14_ on invoice7_.createdby = aduser14_.ad_user_id left outer join ad_user aduser15_ on order3_.createdby = aduser15_.ad_user_id left outer join ad_user aduser16_ on invoice7_.updatedby = aduser16_.ad_user_id left outer join ad_user aduser17_ on order3_.updatedby = aduser17_.ad_user_id left outer join c_bp_bankaccount businesspa18_ on invoice7_.em_etabam_bankaccount_id = businesspa18_.c_bp_bankaccount_id left outer join c_bp_bankaccount businesspa19_ on order3_.em_etabam_bankaccount_id = businesspa19_.c_bp_bankaccount_id where (fin_paymen0_.ad_client_id in (...)) and (fin_paymen0_.fin_payment_detail_id is null or fin_paymen13_.fin_payment_id = ?) and (coalesce(fin_paymen6_.fin_payment_schedule_id, fin_paymen2_.fin_payment_schedule_id) is not null) and (fin_paymen0_.ad_org_id in (...)) and (organizati11_.ad_org_id is null or organizati11_.isactive = ?) and (fin_paymen0_.fin_payment_scheduledetail_id in (...) or invoice7_.issotrx = ? and invoice7_.c_currency_id = ?) group by invoice7_.c_invoice_id, invoice7_.documentno, invoice7_.c_doctype_id, coalesce(fin_paymen6_.fin_paymentmethod_id, fin_paymen2_.fin_paymentmethod_id), coalesce(fin_paymen9_.name, fin_paymen5_.name), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), coalesce(fin_paymen8_.priority, fin_paymen4_.priority), invoice7_.issotrx, organizati11_.ad_org_id, organizati11_.em_aprm_payment_desc, invoice7_.poreference, aduser14_.username, aduser16_.username, invoice7_.created, invoice7_.updated, businesspa1_.c_bpartner_id, businesspa1_.name, coalesce(businesspa18_.accountno, businesspa19_.accountno) having upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper(array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?)) like upper(?) escape ? or upper( case when invoice7_.issotrx = ? and (organizati11_.ad_org_id is not null) and (organizati11_.em_aprm_payment_desc like ?) then invoice7_.poreference else invoice7_.documentno end) like upper(?) escape ? order by case when array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? or array_to_string(array_agg(fin_paymen0_.fin_payment_scheduledetail_id), ?) like ? then ? else ? end, coalesce(fin_paymen8_.priority, fin_paymen4_.priority), coalesce(fin_paymen6_.expecteddate, fin_paymen2_.expecteddate), invoice7_.documentno limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 17 09 2 4s84ms 2s42ms [ User: tad - Total duration: 4s84ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s84ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0339461D8574CCFBD6E624AECDE0D0D%') 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 '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:46 Duration: 2s57ms 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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('%4ABF368BF2E64ACD960390E148C23171%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%E4E2A4631AE64EF3A607E6CB662C8E41%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%73F8A221F1324D47A94FED1C555865E1%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%91DDD27C456A4F76BE19EEE5201CCA9D%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%CADF8F019B3745FD9B2DF6AB7F4550F7%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%A9645EAAF01443268D082DD81B9B3CCC%') escape '|' or upper(array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',')) like upper('%D0339461D8574CCFBD6E624AECDE0D0D%') 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/3860%') escape '|' order by case when array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:47 Duration: 2s26ms 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 ('4ABF368BF2E64ACD960390E148C23171', 'E4E2A4631AE64EF3A607E6CB662C8E41', '73F8A221F1324D47A94FED1C555865E1', '91DDD27C456A4F76BE19EEE5201CCA9D', 'CADF8F019B3745FD9B2DF6AB7F4550F7', 'A9645EAAF01443268D082DD81B9B3CCC', 'D0339461D8574CCFBD6E624AECDE0D0D') 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 '%4ABF368BF2E64ACD960390E148C23171%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%E4E2A4631AE64EF3A607E6CB662C8E41%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%73F8A221F1324D47A94FED1C555865E1%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%91DDD27C456A4F76BE19EEE5201CCA9D%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%CADF8F019B3745FD9B2DF6AB7F4550F7%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%A9645EAAF01443268D082DD81B9B3CCC%' or array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), ',') like '%D0339461D8574CCFBD6E624AECDE0D0D%' 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-17 09:16:45 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
16 1s862ms 1s938ms 1s904ms 3 5s712ms select array_to_string(array_agg(fin_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 17 09 1 1s938ms 1s938ms 13 2 3s774ms 1s887ms [ User: tad - Total duration: 5s712ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 5s712ms - 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 = 'BC0122F2CE7A4F6E95874D33519FB7BE') 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-17 09:14:26 Duration: 1s938ms 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 = 'D08A1DDB2FF54D0298D1610F694F1336') 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-17 13:36:59 Duration: 1s911ms 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 = '30C64733C951418F889EB07A1F7F1DEF') 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-17 13:43:21 Duration: 1s862ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 1s196ms 1s357ms 1s261ms 24 30s274ms 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 17 10 14 17s801ms 1s271ms 17 10 12s472ms 1s247ms [ User: tad - Total duration: 30s274ms - Times executed: 24 ]
[ Application: openbravo - Total duration: 30s274ms - Times executed: 24 ]
-
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('%UFI1232%') or upper(product1_.Value) like upper('%UFI1232%') or upper(product1_.Name) like upper('%UFI1232%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-17 10:31:00 Duration: 1s357ms 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('%PETIT%MATERI%') or upper(product1_.Value) like upper('%PETIT%MATERI%') or upper(product1_.Name) like upper('%PETIT%MATERI%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-17 10:31:53 Duration: 1s320ms 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('%UFI12324%') or upper(product1_.Value) like upper('%UFI12324%') or upper(product1_.Name) like upper('%UFI12324%')) and (upper(pricingpri2_.Name) like upper('%Venta%')) and pricingpri2_.M_PriceList_Version_ID = 'FF80818134057575013437B0786E0262' order by 7 limit '76';
Date: 2026-07-17 10:31:06 Duration: 1s317ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 1s84ms 1s214ms 1s159ms 15 17s389ms select * from ( select o.c_order_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? || ad_column_identifier (?, o.c_order_id, ?) || ? || sum(ol.linenetamt) || ? || o.totallines as description, ? as isactive, o.ad_org_id as ad_org_id, o.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, o.c_order_id, ?) as record_id from c_order o left join c_orderline ol on ol.c_order_id = o.c_order_id group by o.totallines, o.c_order_id having sum(ol.linenetamt) <> o.totallines) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 17 07 1 1s206ms 1s206ms 08 1 1s137ms 1s137ms 09 1 1s211ms 1s211ms 10 1 1s144ms 1s144ms 11 1 1s167ms 1s167ms 12 1 1s176ms 1s176ms 13 1 1s149ms 1s149ms 14 1 1s84ms 1s84ms 15 1 1s214ms 1s214ms 16 1 1s130ms 1s130ms 17 1 1s170ms 1s170ms 18 1 1s133ms 1s133ms 19 1 1s167ms 1s167ms 20 1 1s101ms 1s101ms 21 1 1s192ms 1s192ms [ User: tad - Total duration: 17s389ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 17s389ms - 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-17 15:00:01 Duration: 1s214ms 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-17 09:00:01 Duration: 1s211ms 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-17 07:00:01 Duration: 1s206ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 1s 1s515ms 1s109ms 6 6s658ms select shipmentin0_.m_inout_id as m_inout_1_509_0_, shipmentin0_.ad_client_id as ad_clien2_509_0_, shipmentin0_.ad_org_id as ad_org_i3_509_0_, ( select count(*) from c_bpartner as bp where bp.c_bpartner_id = shipmentin0_.c_bpartner_id and ( select count(*) from probs_bp_observation as obs where obs.c_bpartner_id = bp.c_bpartner_id and obs.popupinout = ?) > ?) as formula34_0_, ( select c_getinvoicestatusfromshipment (shipmentin0_.m_inout_id) from dual) as formula35_0_ from m_inout shipmentin0_ where shipmentin0_.m_inout_id = ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 17 08 1 1s515ms 1s515ms 11 1 1s80ms 1s80ms 15 3 3s62ms 1s20ms 17 1 1s 1s [ User: tad - Total duration: 6s658ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 6s658ms - Times executed: 6 ]
-
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 = '685E20C464B647FCB1477E28DCB06253';
Date: 2026-07-17 08:30:53 Duration: 1s515ms 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 = '038AF2FA2F04427CAED332404A60E870';
Date: 2026-07-17 11:58:55 Duration: 1s80ms 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 = '6C836A724E2C46D6BEC5A17CBF060CD7';
Date: 2026-07-17 15:15:07 Duration: 1s50ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 1s12ms 1s29ms 1s23ms 3 3s71ms select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> ? or coalesce(sd.qtyorderonhand, ?) <> ? union all select m_product_id, null, ?, ? from m_product p where p.isgeneric = ?) as ps where ((ps.qtyonhand <> ? and exists ( select ? from m_locator ml where ml.m_locator_id = ps.m_locator_id and exists ( select ? from ad_org_warehouse ow where ml.m_warehouse_id = ow.m_warehouse_id and ow.ad_org_id in (...)))) or (exists ( select ? from m_product mp where ps.m_product_id = mp.m_product_id and mp.isstocked = ? and mp.producttype = ? and ad_client_id = ?))) and not exists ( select ? from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = ?) and exists ( select ? from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = ? and mp.producttype = ? and ad_client_id = ?);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 17 09 1 1s29ms 1s29ms 10 1 1s12ms 1s12ms 11 1 1s29ms 1s29ms [ User: tad - Total duration: 3s71ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 3s71ms - Times executed: 3 ]
-
select distinct ps.m_product_id as product_id from ( select m_product_id, sd.m_locator_id, sd.qtyonhand, sd.qtyorderonhand from m_storage_detail sd where sd.qtyonhand <> 0 OR COALESCE(sd.qtyorderonhand, 0) <> 0 union ALL select m_product_id, null, 0, 0 FROM m_product p WHERE p.isgeneric = 'N') as ps where ((ps.qtyonhand <> 0 AND EXISTS ( SELECT 1 FROM m_locator ml WHERE ml.m_locator_id = ps.m_locator_id AND EXISTS ( SELECT 1 FROM AD_Org_Warehouse ow WHERE ml.m_warehouse_id = ow.m_warehouse_id AND ow.ad_org_id IN ('FF80818134D2AA330134F1D03034277D', 'FF80818133B7413E0133B71974AD28C6')))) OR (EXISTS ( SELECT 1 FROM m_product mp WHERE ps.m_product_id = mp.m_product_id AND mp.isstocked = 'N' AND mp.producttype = 'I' AND ad_client_id = 'FF80818133B7413E0133B7164D6A0002'))) AND NOT EXISTS ( select 1 from obretco_prol_product obp where ps.m_product_id = obp.m_product_id and obp.obretco_productlist_id = '52ABADF5F9C04311B0A0E8FD21244670') AND exists ( select 1 from m_product mp where ps.m_product_id = mp.m_product_id and mp.issold = 'Y' and mp.producttype = 'I' and ad_client_id = 'FF80818133B7413E0133B7164D6A0002');
Date: 2026-07-17 09:00:01 Duration: 1s29ms 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-17 11:00:01 Duration: 1s29ms 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-17 10:00:01 Duration: 1s12ms 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
- 17,079 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
- 2 ERROR entries
- 0 WARNING entries
- 1 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 1 Max number of times the same event was reported
- 3 Total events found
Rank Times reported Error 1 1 ERROR: Comanda de Compra-12512202,@ActivePoSo@
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 17 11 1 - ERROR: Comanda de Compra-12512202,@ActivePoSo@
Context: PL/pgSQL function m_product_trg() line 121 at RAISE
Statement: update M_Product set IsActive=$1, Updated=$2 where M_Product_ID=$3Date: 2026-07-17 11:48:19 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
2 1 ERROR: @CannotDeletePermanentCost@
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 17 10 1 - 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-17 10:37:20 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
3 1 LOG: process ... still waiting for ShareLock on transaction ... after ... ms
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 17 09 1 - LOG: process 3148043 still waiting for ShareLock on transaction 2987459 after 1000.049 ms
Detail: Process holding the lock: 2793057. Wait queue: 3148043.
Context: while updating tuple (4,39) in relation "ad_sequence"
Statement: update AD_Sequence set Updated=$1, CurrentNext=$2 where AD_Sequence_ID=$3Date: 2026-07-17 09:30:47 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1