pg_profile version 0.3.6
Server name: local
Report interval: 2026-07-17 04:00:01+01 - 2026-07-18 03:00:02+01
Warning!Report includes 23 sample(s) with setting pg_stat_statements.track = all.Value of %Total columns may be incorrect.
| Database | Transactions | Block statistics | Tuples | Temp files | Size | Growth | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Commits | Rollbacks | Deadlocks | Hit(%) | Read | Hit | Ret | Fet | Ins | Upd | Del | Size | Files | |||
| openbravo | 1196934 | 6096 | 95.94 | 514318195 | 12147700170 | 32737738238 | 11655933911 | 1142485 | 785149 | 843463 | 317 GB | 6367 | 309 GB | 6967 MB | |
| postgres | 11705 | 99.48 | 3430 | 654737 | 1904941 | 348116 | 6391 kB | ||||||||
| Total | 1208639 | 6096 | 95.94 | 514321625 | 12148354907 | 32739643179 | 11656282027 | 1142485 | 785149 | 843463 | 317 GB | 6367 | 309 GB | 6967 MB | |
| Database | Calls | Time (s) | Fetched (blk) | Dirtied (blk) | Temp (blk) | Local (blk) | Statements | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Exec | Read | Write | Trg | Shared | Local | Shared | Local | Read | Write | Read | Write | |||
| openbravo | 19533329 | 103700.38 | 278.18 | 13090281130 | 28319815 | 3635426 | 2927 | 40785646 | 41817416 | 3269 | 55007 | |||
| postgres | 5612 | 8.73 | 86741 | 345 | ||||||||||
| template1 | 6348 | 13.05 | 7176 | 276 | ||||||||||
| Total | 19545289 | 103722.16 | 278.18 | 13090375047 | 28319815 | 3635426 | 2927 | 40785646 | 41817416 | 3269 | 55628 | |||
| Metric | Value |
|---|---|
| Scheduled checkpoints | 276 |
| Requested checkpoints | |
| Checkpoint write time (s) | 54209.38 |
| Checkpoint sync time (s) | 24.76 |
| Checkpoints buffers written | 2359026 |
| Background buffers written | 500435 |
| Backend buffers written | 205051 |
| Backend fsync count | |
| Bgwriter interrupts (too many buffers) | 3115 |
| Number of buffers allocated | 125005033 |
| WAL generated | 25 GB |
| WAL segments archived | 1614 |
| WAL segments archive failed |
| Tablespace | Path | Size | Growth |
|---|---|---|---|
| pg_default | 309 GB | 6967 MB | |
| pg_global | 1014 kB |
| Query ID | Database | Exec (s) | %Total | Rows | Execution times (ms) | Executions | |||
|---|---|---|---|---|---|---|---|---|---|
| Mean | Min | Max | StdErr | ||||||
[ff177b6c] | openbravo | 12069.02 | 11.64 | 1174 | 10280.252 | 0.047 | 491168.627 | 56777.252 | 1174 |
[a35d3b99] | openbravo | 7679.39 | 7.40 | 1358 | 5654.926 | 4.866 | 491903.303 | 39617.000 | 1358 |
[74267a2] | openbravo | 7679.33 | 7.40 | 1358 | 5654.883 | 4.845 | 491903.281 | 39616.995 | 1358 |
[ea4e56b9] | openbravo | 7679.30 | 7.40 | 1358 | 5654.862 | 4.831 | 491903.268 | 39616.993 | 1358 |
[a8f792e0] | openbravo | 6896.08 | 6.65 | 876 | 7872.239 | 0.079 | 491168.830 | 53538.713 | 876 |
[c68fee63] | openbravo | 5185.23 | 5.00 | 365 | 14206.101 | 11.559 | 390071.020 | 58993.988 | 365 |
[5fc94ec0] | openbravo | 5184.98 | 5.00 | 360 | 14402.720 | 11.541 | 390070.996 | 59378.484 | 360 |
[e8c42400] | openbravo | 5173.16 | 4.99 | 360 | 14369.895 | 0.042 | 390036.742 | 59373.869 | 360 |
[f268953e] | openbravo | 4569.89 | 4.41 | 150 | 913978.637 | 908182.920 | 917963.976 | 3813.539 | 5 |
[5b93a467] | openbravo | 3069.82 | 2.96 | 22245.080 | 16608.446 | 168531.772 | 17100.947 | 138 | |
[9603f2b6] | openbravo | 2661.80 | 2.57 | 190504 | 609.387 | 551.983 | 1067.404 | 35.414 | 4368 |
[d0a21c54] | openbravo | 2378.68 | 2.29 | 1433 | 1659.933 | 3.905 | 491739.677 | 23991.726 | 1433 |
[bfd8039a] | openbravo | 2348.24 | 2.26 | 939 | 2500.792 | 21.539 | 491813.778 | 29593.922 | 939 |
[faa0b8dc] | openbravo | 2321.35 | 2.24 | 582 | 3988.580 | 14.900 | 491776.650 | 37509.633 | 582 |
[368ff015] | openbravo | 2303.75 | 2.22 | 210 | 10970.259 | 2.534 | 491735.073 | 61823.406 | 210 |
[baac2e1a] | openbravo | 2301.53 | 2.22 | 202 | 11393.723 | 0.174 | 491710.470 | 62995.749 | 202 |
[f9b02264] | openbravo | 1924.03 | 1.85 | 32 | 962015.672 | 911709.424 | 1012321.920 | 50306.248 | 2 |
[e0869ab2] | openbravo | 1204.55 | 1.16 | 8728.651 | 7624.067 | 21939.997 | 2096.145 | 138 | |
[a6742d25] | openbravo | 1177.42 | 1.14 | 3473909 | 9.987 | 0.022 | 119241.648 | 489.756 | 117899 |
[84cd185c] | openbravo | 953.75 | 0.92 | 935 | 18341.431 | 6466.230 | 123054.472 | 22048.416 | 52 |
| Query ID | Database | Executions | %Total | Rows | Mean(ms) | Min(ms) | Max(ms) | StdErr(ms) | Elapsed(s) |
|---|---|---|---|---|---|---|---|---|---|
[263f5b0b] | openbravo | 1120410 | 5.73 | 581221 | 0.003 | 0.001 | 16.036 | 0.028 | 3.1 |
[6df21622] | openbravo | 926162 | 4.74 | 926162 | 0.003 | 0.002 | 3.343 | 0.007 | 2.8 |
[d2788d4] | openbravo | 831827 | 4.26 | 831827 | 0.003 | 0.001 | 1.971 | 0.005 | 2.4 |
[fc9c6197] | openbravo | 423813 | 2.17 | 423813 | 0.011 | 0.008 | 8.593 | 0.018 | 4.6 |
[aada7118] | openbravo | 343602 | 1.76 | 41789 | 0.017 | 0.003 | 15.791 | 0.148 | 5.8 |
[6f9b1a85] | openbravo | 328746 | 1.68 | 0.001 | 0.000 | 0.819 | 0.002 | 0.2 | |
[2049516b] | openbravo | 324233 | 1.66 | 0.001 | 0.000 | 1.480 | 0.004 | 0.2 | |
[2b8e321f] | openbravo | 291648 | 1.49 | 291648 | 0.006 | 0.002 | 15.107 | 0.029 | 1.7 |
[c7e884e0] | openbravo | 282851 | 1.45 | 282805 | 0.004 | 0.002 | 2.287 | 0.008 | 1.0 |
[1c1c8a81] | openbravo | 263379 | 1.35 | 263379 | 0.003 | 0.002 | 1.746 | 0.005 | 0.8 |
[6d0d7fc] | openbravo | 223685 | 1.14 | 223685 | 0.007 | 0.002 | 4.514 | 0.047 | 1.6 |
[81592075] | openbravo | 186296 | 0.95 | 186296 | 0.003 | 0.002 | 6.948 | 0.016 | 0.5 |
[880044aa] | openbravo | 152210 | 0.78 | 152210 | 0.002 | 0.001 | 1.882 | 0.006 | 0.3 |
[30f21dca] | openbravo | 147113 | 0.75 | 147113 | 0.258 | 0.204 | 9.681 | 0.066 | 38.0 |
[a5716dbe] | openbravo | 147113 | 0.75 | 147113 | 0.230 | 0.203 | 2.383 | 0.047 | 33.9 |
[d9433e44] | openbravo | 146164 | 0.75 | 146164 | 0.003 | 0.002 | 2.029 | 0.006 | 0.5 |
[5d6197e1] | openbravo | 123946 | 0.63 | 123918 | 0.007 | 0.004 | 1.247 | 0.008 | 0.9 |
[588b10e0] | openbravo | 118458 | 0.61 | 0.002 | 0.001 | 0.533 | 0.003 | 0.3 | |
[a6742d25] | openbravo | 117899 | 0.60 | 3473909 | 9.987 | 0.022 | 119241.648 | 489.756 | 1177.4 |
[2ff59f28] | openbravo | 114053 | 0.58 | 114053 | 0.253 | 0.045 | 45.726 | 0.399 | 28.8 |
| Query ID | Database | blks fetched | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[f268953e] | openbravo | 2088578769 | 15.96 | 98.23 | 4569.9 | 150 | 5 |
[5b93a467] | openbravo | 1487475690 | 11.36 | 96.26 | 3069.8 | 138 | |
[a6742d25] | openbravo | 899680471 | 6.87 | 99.93 | 1177.4 | 3473909 | 117899 |
[f9b02264] | openbravo | 835556784 | 6.38 | 98.53 | 1924.0 | 32 | 2 |
[e0869ab2] | openbravo | 661406787 | 5.05 | 98.79 | 1204.6 | 138 | |
[22c79513] | openbravo | 480685619 | 3.67 | 99.82 | 626.3 | 70 | 70 |
[8e963014] | openbravo | 267887392 | 2.05 | 99.59 | 277.5 | 45 | 45 |
[77f16cf5] | openbravo | 243402290 | 1.86 | 100.00 | 262.4 | 192 | 21 |
[c4153bc0] | openbravo | 185223736 | 1.41 | 99.26 | 468.7 | 2923158 | 332 |
[84cd185c] | openbravo | 153792599 | 1.17 | 99.79 | 953.8 | 935 | 52 |
[980edddc] | openbravo | 147396705 | 1.13 | 99.54 | 149.1 | 24 | 24 |
[c297f073] | openbravo | 141219326 | 1.08 | 98.12 | 173.3 | 23 | 23 |
[f51c7e38] | openbravo | 131403655 | 1.00 | 99.64 | 675.0 | 1445 | 16 |
[3111e984] | openbravo | 131091419 | 1.00 | 99.64 | 673.1 | 1445 | 1445 |
[2266d068] | openbravo | 129288852 | 0.99 | 99.64 | 160.4 | 594 | 68 |
[fb2a3095] | openbravo | 125446728 | 0.96 | 73.17 | 619.2 | 126 | |
[73183df] | openbravo | 114226439 | 0.87 | 97.29 | 238.7 | 6 | 6 |
[3fe437d2] | openbravo | 113950868 | 0.87 | 98.74 | 292.6 | 10800 | 10806 |
[464f8019] | openbravo | 110519096 | 0.84 | 99.53 | 130.3 | 18 | 18 |
[5494e49a] | openbravo | 106539619 | 0.81 | 22.97 | 153.1 | 96 | 96 |
| Query ID | Database | Reads | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[4960efab] | openbravo | 82183445 | 15.52 | 22.86 | 166.3 | 96 | 96 |
[5494e49a] | openbravo | 82067913 | 15.49 | 22.97 | 153.1 | 96 | 96 |
[5b93a467] | openbravo | 55671338 | 10.51 | 96.26 | 3069.8 | 138 | |
[f268953e] | openbravo | 36916999 | 6.97 | 98.23 | 4569.9 | 150 | 5 |
[fb2a3095] | openbravo | 33662434 | 6.36 | 73.17 | 619.2 | 126 | |
[94a66f88] | openbravo | 27381991 | 5.17 | 22.90 | 56.1 | 32 | 32 |
[6fed39e5] | openbravo | 27295369 | 5.15 | 23.14 | 54.2 | 32 | 32 |
[131a43ac] | openbravo | 13640200 | 2.58 | 23.18 | 26.5 | 16 | 16 |
[d5f8441b] | openbravo | 13629671 | 2.57 | 23.24 | 25.2 | 16 | 16 |
[f9b02264] | openbravo | 12301860 | 2.32 | 98.53 | 1924.0 | 32 | 2 |
[2fa4f443] | openbravo | 11181090 | 2.11 | 16.71 | 92.4 | 1 | 1 |
[e0869ab2] | openbravo | 7989527 | 1.51 | 98.79 | 1204.6 | 138 | |
[c1020a32] | openbravo | 5122754 | 0.97 | 63.86 | 192.0 | 34 | 1 |
[317531b3] | openbravo | 4378941 | 0.83 | 88.00 | 82.6 | 5 | |
[a28b2b86] | openbravo | 4016570 | 0.76 | 0.00 | 24.5 | 1 | |
[7318d810] | openbravo | 4014374 | 0.76 | 344.6 | 38045573 | 1 | |
[57d3e9b9] | openbravo | 3692295 | 0.70 | 81.97 | 94.7 | 132 | |
[73183df] | openbravo | 3094206 | 0.58 | 97.29 | 238.7 | 6 | 6 |
[871bdc0f] | openbravo | 2966101 | 0.56 | 25.38 | 30.2 | 4 | |
[5bd4159e] | openbravo | 2744395 | 0.52 | 63.12 | 58.0 | 108 |
| Query ID | Database | Dirtied | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[8797b6f9] | openbravo | 443405 | 12.20 | 0.03 | 46.4 | 1 | |
[cd352352] | openbravo | 346241 | 9.52 | 63.7 | 14122033 | 1 | |
[a03a69a5] | openbravo | 194155 | 5.34 | 97.58 | 33.5 | 57480 | 57480 |
[eb67e33f] | openbravo | 138726 | 3.82 | 94.93 | 29.6 | 88781 | 88781 |
[3695269c] | openbravo | 120276 | 3.31 | 96.64 | 27.2 | 31765 | 31765 |
[74267a2] | openbravo | 70361 | 1.94 | 93.29 | 7679.3 | 1358 | 1358 |
[a35d3b99] | openbravo | 70361 | 1.94 | 93.29 | 7679.4 | 1358 | 1358 |
[ea4e56b9] | openbravo | 70361 | 1.94 | 93.29 | 7679.3 | 1358 | 1358 |
[4211bbca] | openbravo | 55212 | 1.52 | 43.39 | 7.7 | 1 | |
[2ff59f28] | openbravo | 52985 | 1.46 | 99.97 | 28.8 | 114053 | 114053 |
[c1020a32] | openbravo | 46666 | 1.28 | 63.86 | 192.0 | 34 | 1 |
[8f1d721] | openbravo | 45023 | 1.24 | 99.57 | 35.0 | 10205 | 10205 |
[d3eb78] | openbravo | 41152 | 1.13 | 91.61 | 17.3 | 20080 | 20080 |
[6bdd6481] | openbravo | 40534 | 1.11 | 98.58 | 13.0 | 9863 | 9863 |
[baa0f6d7] | openbravo | 35117 | 0.97 | 99.58 | 22.7 | 11163 | 11163 |
[6f92ba97] | openbravo | 33770 | 0.93 | 9.68 | 86.2 | 7027597 | 1 |
[205b8c88] | openbravo | 32915 | 0.91 | 98.37 | 6.1 | 11252 | 11252 |
[bfd8039a] | openbravo | 27757 | 0.76 | 99.35 | 2348.2 | 939 | 939 |
[12018251] | openbravo | 27644 | 0.76 | 86.92 | 6.7 | 7725 | 7725 |
[89ff8432] | openbravo | 27564 | 0.76 | 92.77 | 3.1 | 9355 | 9355 |
| Query ID | Database | Written | %Total | %BackendW | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|---|
[4211bbca] | openbravo | 42093 | 1.37 | 20.53 | 43.39 | 7.7 | 1 | |
[6ee18a4d] | openbravo | 13137 | 0.43 | 6.41 | 48.18 | 0.7 | 1 | |
[2fa4f443] | openbravo | 8657 | 0.28 | 4.22 | 16.71 | 92.4 | 1 | 1 |
[57e6c62c] | openbravo | 8657 | 0.28 | 4.22 | 8.89 | 10.6 | 1 | |
[5b93a467] | openbravo | 7175 | 0.23 | 3.50 | 96.26 | 3069.8 | 138 | |
[ab56bf1d] | openbravo | 5871 | 0.19 | 2.86 | 31.03 | 19.0 | 14 | 4 |
[e0869ab2] | openbravo | 5770 | 0.19 | 2.81 | 98.79 | 1204.6 | 138 | |
[429b2ffc] | openbravo | 3939 | 0.13 | 1.92 | 70.61 | 0.4 | 1 | |
[76ede534] | openbravo | 3831 | 0.13 | 1.87 | 50.79 | 0.1 | 1 | |
[73183df] | openbravo | 3795 | 0.12 | 1.85 | 97.29 | 238.7 | 6 | 6 |
[c297f073] | openbravo | 3720 | 0.12 | 1.81 | 98.12 | 173.3 | 23 | 23 |
[b9515b09] | openbravo | 2433 | 0.08 | 1.19 | 0.03 | 8.7 | 2 | 2 |
[2e890cfd] | openbravo | 2068 | 0.07 | 1.01 | 91.94 | 89.1 | 4 | 4 |
[57d3e9b9] | openbravo | 1608 | 0.05 | 0.78 | 81.97 | 94.7 | 132 | |
[b6e0892c] | openbravo | 960 | 0.03 | 0.47 | 5.83 | 4.5 | 2 | 2 |
[2266d068] | openbravo | 954 | 0.03 | 0.47 | 99.64 | 160.4 | 594 | 68 |
[d87869f1] | openbravo | 736 | 0.02 | 0.36 | 92.88 | 21.9 | 2 | 2 |
[427f2756] | openbravo | 615 | 0.02 | 0.30 | 98.83 | 73.2 | 8 | 8 |
[aa92e059] | openbravo | 567 | 0.02 | 0.28 | 94.26 | 14.8 | 1 | 1 |
[1e5d1bbf] | openbravo | 520 | 0.02 | 0.25 | 91.52 | 0.3 | 1 |
| Query ID | Database | Local fetched | Hits(%) | Local (blk) | Temp (blk) | Elapsed(s) | Rows | Executions | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Write | %Total | Read | %Total | Write | %Total | Read | %Total | |||||||
[f268953e] | openbravo | 27878606 | 66.67 | 27882946 | 68.36 | 4569.9 | 150 | 5 | ||||||
[f9b02264] | openbravo | 11151364 | 26.67 | 11153100 | 27.35 | 1924.0 | 32 | 2 | ||||||
[4b4aa955] | openbravo | 1194815 | 2.86 | 1195001 | 2.93 | 201.3 | 32 | 3 | ||||||
[744752f] | openbravo | 906793 | 2.17 | 216769 | 0.53 | 42.4 | 1 | 1 | ||||||
[84cd185c] | openbravo | 184506 | 0.44 | 184536 | 0.45 | 953.8 | 935 | 52 | ||||||
[6e3dad39] | openbravo | 123191 | 0.29 | 50457 | 0.12 | 35.5 | 286 | 11 | ||||||
[6e556c27] | openbravo | 89599 | 0.21 | 36696 | 0.09 | 25.8 | 208 | 8 | ||||||
[46df0a8e] | openbravo | 113232 | 0.27 | 9072 | 0.02 | 8.6 | 2 | 2 | ||||||
[58a0d3d2] | openbravo | 81977 | 0.20 | 25732 | 0.06 | 1.2 | 7 | 7 | ||||||
[5cdbbbc1] | openbravo | 64576 | 0.15 | 18340 | 0.04 | 35.7 | 68 | 22 | ||||||
[d87869f1] | openbravo | 15355 | 0.04 | 7631 | 0.02 | 21.9 | 2 | 2 | ||||||
[3ae0446c] | openbravo | 11711 | 0.03 | 3676 | 0.01 | 0.1 | 1 | 1 | ||||||
[973920e6] | openbravo | 1691 | 0.00 | 1690 | 0.00 | 1.7 | 200 | 1 | ||||||
[e0672fcb] | openbravo | 77263 | 99.18 | 630 | 19.27 | 0.3 | 75382 | 75382 | ||||||
[755dbd6e] | openbravo | 3390 | 98.55 | 49 | 1.50 | 0.0 | 3252 | 3252 | ||||||
[e7ce3860] | openbravo | 4017 | 98.78 | 49 | 1.50 | 0.0 | 3879 | 3879 | ||||||
[1685db89] | openbravo | 3171 | 98.64 | 43 | 1.32 | 0.0 | 3051 | 3051 | ||||||
[ad1734cd] | openbravo | 3913 | 98.90 | 43 | 1.32 | 0.0 | 3790 | 3790 | ||||||
[719f22ea] | openbravo | 2657 | 98.49 | 40 | 1.22 | 0.0 | 2546 | 2546 | ||||||
[1b4ce26d] | openbravo | 8181 | 99.52 | 39 | 1.19 | 0.0 | 8071 | 8071 | ||||||
| QueryID | Query Text |
|---|---|
| 26959f7c7a | insert into M_Transaction_Cost (AD_Client_ID, AD_Org_ID, Created, Createdby, Updated, Updatedby, Isactive, M_Transaction_ID, Cost, CostDate, C_Currency_ID, IsUnitCost, DateAcct, M_Transaction_Cost_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) |
| 08c88cedcc | SELECT $2 FROM ONLY "public"."c_bpartner" x WHERE "c_bpartner_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| beb5c816db | select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), $12) as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), $13) as col_1_0_, case when invoice7_.IsSOTrx=$14 and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like $15) then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, $16)) as col_7_0_, businesspa1_.C_BPartner_ID as col_8_0_, businesspa1_.Name as col_9_0_, sum(fin_paymen0_.Amount+fin_paymen0_.Writeoffamt) as col_10_0_, coalesce(sum(fin_paymen12_.Amount), $17) as col_11_0_, case when sum(fin_paymen0_.Writeoffamt)<>$18 then $19 else $20 end as col_12_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then $21 else $22 end as col_13_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID=businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order=fin_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 where (fin_paymen0_.AD_Client_ID in ($23 , $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)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive=$24) and invoice7_.IsSOTrx=$8 and invoice7_.C_Currency_ID=$9 group by invoice7_.C_Invoice_ID , invoice7_.DocumentNo , invoice7_.C_DocType_ID , coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) , coalesce(fin_paymen9_.Name, fin_paymen5_.Name) , coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) , coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority) , invoice7_.IsSOTrx , organizati11_.AD_Org_ID , organizati11_.EM_Aprm_Payment_Desc , invoice7_.POReference , businesspa1_.C_BPartner_ID , businesspa1_.Name having upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper($10) escape $25 order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then $26 else $27 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $11 |
| 7efafc5af2 | SELECT C_ORDER_POST1(p_PInstance_ID, $2) |
| 06ca21d7ba | select prpass_pas0_.Prpass_Pass_Inst_Hist_ID as Prpass_P1_879_, prpass_pas0_.AD_Client_ID as AD_Clien2_879_, prpass_pas0_.AD_Org_ID as AD_Org_I3_879_, prpass_pas0_.Isactive as Isactive4_879_, prpass_pas0_.Created as Created5_879_, prpass_pas0_.Createdby as Createdb6_879_, prpass_pas0_.Updated as Updated7_879_, prpass_pas0_.Updatedby as Updatedb8_879_, prpass_pas0_.Value as Value9_879_, prpass_pas0_.Status as Status10_879_, prpass_pas0_.C_Orderline_ID as C_Order11_879_, prpass_pas0_.C_Order_ID as C_Order12_879_, prpass_pas0_.Dateordered as Dateord13_879_, prpass_pas0_.C_Bpartner_ID as C_Bpart14_879_, prpass_pas0_.M_Product_ID as M_Produ15_879_, prpass_pas0_.Obpos_Applications_ID as Obpos_A16_879_, prpass_pas0_.Cancel as Cancel17_879_, prpass_pas0_.AD_Creation_Org_ID as AD_Crea18_879_, prpass_pas0_.Expirationdate as Expirat19_879_, prpass_pas0_.Prpass_Timeslots_Detail_ID as Prpass_20_879_, prpass_pas0_.Prpass_Timeslots_Res_ID as Prpass_21_879_, prpass_pas0_.Time_First_Pick as Time_Fi22_879_, prpass_pas0_.Validate_Manual as Validat23_879_, prpass_pas0_.Unlimited as Unlimit24_879_ from prpass_pass_inst_hist prpass_pas0_ where (prpass_pas0_.AD_Org_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)) and (prpass_pas0_.AD_Client_ID in ($39 , $40)) order by prpass_pas0_.Value, prpass_pas0_.Prpass_Pass_Inst_Hist_ID limit $41 |
| 7cdb887c2a | insert into M_ProductionLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, M_ProductionPlan_ID, Line, M_Product_ID, MovementQty, M_Locator_ID, M_AttributeSetInstance_ID, C_UOM_ID, Calculated, Rejectedquantity, EM_Cactl_Added_Manually, M_ProductionLine_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18) |
| a46753d96b | SELECT $2 FROM ONLY "public"."ad_client" x WHERE "ad_client_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 86ae00e408 | insert into C_OrderLineTax (C_Orderline_ID, C_Tax_ID, AD_Client_ID, AD_Org_ID, Isactive, Created, Createdby, Updated, Updatedby, Taxbaseamt, Taxamt, Line, C_Order_ID, C_Orderlinetax_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) |
| 6a1bba66a2 | SELECT COUNT(*) AS ID FROM C_OrderLine WHERE Replacedorderline_id = $1 AND EXISTS (SELECT $2 FROM C_Order WHERE C_Order.C_Order_ID = C_OrderLine.C_Order_ID AND C_Order.IsSOTrx=$3 and exists ( select $4 from C_DocType where C_DocType_ID = C_Order.C_DocTypeTarget_ID and isreturn=$5)) AND AD_ORG_ID NOT IN ($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) |
| d0c28bf4b2 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 69a0cb34e3 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 03a1d4e90c | SELECT $2 FROM ONLY "public"."c_currency" x WHERE "c_currency_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 5a62f392ad | vacuum analyze AD_PInstance |
| 8a7672d920 | COMMIT |
| 101ed24576 | update C_Invoice set Updated=$1, DaysTillDue=$2, LastCalculatedOnDate=$3 where C_Invoice_ID=$4 |
| c180ac6f1a | select businesspa0_.C_BPartner_ID as C_BPartn1_203_, businesspa0_.AD_Client_ID as AD_Clien2_203_, businesspa0_.AD_Org_ID as AD_Org_I3_203_, businesspa0_.IsActive as IsActive4_203_, businesspa0_.Created as Created5_203_, businesspa0_.CreatedBy as CreatedB6_203_, businesspa0_.Updated as Updated7_203_, businesspa0_.UpdatedBy as UpdatedB8_203_, businesspa0_.Value as Value9_203_, businesspa0_.Name as Name10_203_, businesspa0_.Name2 as Name11_203_, businesspa0_.Description as Descrip12_203_, businesspa0_.IsSummary as IsSumma13_203_, businesspa0_.C_BP_Group_ID as C_BP_Gr14_203_, businesspa0_.IsOneTime as IsOneTi15_203_, businesspa0_.IsProspect as IsProsp16_203_, businesspa0_.IsVendor as IsVendo17_203_, businesspa0_.IsCustomer as IsCusto18_203_, businesspa0_.IsEmployee as IsEmplo19_203_, businesspa0_.IsSalesRep as IsSales20_203_, businesspa0_.ReferenceNo as Referen21_203_, businesspa0_.DUNS as DUNS22_203_, businesspa0_.URL as URL23_203_, businesspa0_.AD_Language as AD_Lang24_203_, businesspa0_.TaxID as TaxID25_203_, businesspa0_.IsTaxExempt as IsTaxEx26_203_, businesspa0_.C_InvoiceSchedule_ID as C_Invoi27_203_, businesspa0_.Rating as Rating28_203_, businesspa0_.SalesVolume as SalesVo29_203_, businesspa0_.NumberEmployees as NumberE30_203_, businesspa0_.NAICS as NAICS31_203_, businesspa0_.FirstSale as FirstSa32_203_, businesspa0_.AcqusitionCost as Acqusit33_203_, businesspa0_.PotentialLifeTimeValue as Potenti34_203_, businesspa0_.ActualLifeTimeValue as ActualL35_203_, businesspa0_.ShareOfCustomer as ShareOf36_203_, businesspa0_.PaymentRule as Payment37_203_, businesspa0_.SO_CreditLimit as SO_Cred38_203_, businesspa0_.SO_CreditUsed as SO_Cred39_203_, businesspa0_.C_PaymentTerm_ID as C_Payme40_203_, businesspa0_.M_PriceList_ID as M_Price41_203_, businesspa0_.IsDiscountPrinted as IsDisco42_203_, businesspa0_.SO_Description as SO_Desc43_203_, businesspa0_.POReference as PORefer44_203_, businesspa0_.PaymentRulePO as Payment45_203_, businesspa0_.PO_PriceList_ID as PO_Pric46_203_, businesspa0_.PO_PaymentTerm_ID as PO_Paym47_203_, businesspa0_.DocumentCopies as Documen48_203_, businesspa0_.C_Greeting_ID as C_Greet49_203_, businesspa0_.InvoiceRule as Invoice50_203_, businesspa0_.DeliveryRule as Deliver51_203_, businesspa0_.DeliveryViaRule as Deliver52_203_, businesspa0_.SalesRep_ID as SalesRe53_203_, businesspa0_.BPartner_Parent_ID as BPartne54_203_, businesspa0_.SOCreditStatus as SOCredi55_203_, businesspa0_.AD_Forced_Org_ID as AD_Forc56_203_, businesspa0_.ShowPriceInOrder as ShowPri57_203_, businesspa0_.Invoicegrouping as Invoice58_203_, businesspa0_.FixMonthDay as FixMont59_203_, businesspa0_.FixMonthDay2 as FixMont60_203_, businesspa0_.Fixmonthday3 as Fixmont61_203_, businesspa0_.Isworker as Isworke62_203_, businesspa0_.UPC as UPC63_203_, businesspa0_.C_Salary_Category_ID as C_Salar64_203_, businesspa0_.Invoice_Printformat as Invoice65_203_, businesspa0_.Last_Days as Last_Da66_203_, businesspa0_.PO_Bankaccount_ID as PO_Bank67_203_, businesspa0_.PO_BP_TaxCategory_ID as PO_BP_T68_203_, businesspa0_.PO_Fixmonthday as PO_Fixm69_203_, businesspa0_.PO_Fixmonthday2 as PO_Fixm70_203_, businesspa0_.PO_Fixmonthday3 as PO_Fixm71_203_, businesspa0_.SO_Bankaccount_ID as SO_Bank72_203_, businesspa0_.SO_Bp_Taxcategory_ID as SO_Bp_T73_203_, businesspa0_.Fiscalcode as Fiscalc74_203_, businesspa0_.Isofiscalcode as Isofisc75_203_, businesspa0_.EM_Einv_Einvoice as EM_Einv76_203_, businesspa0_.PO_C_Incoterms_ID as PO_C_In77_203_, businesspa0_.EM_Einv_Format_Id as EM_Einv78_203_, businesspa0_.SO_C_Incoterms_ID as SO_C_In79_203_, businesspa0_.EM_Einv_Platform_Id as EM_Einv80_203_, businesspa0_.FIN_Paymentmethod_ID as FIN_Pay81_203_, businesspa0_.EM_Einv_Email as EM_Einv82_203_, businesspa0_.PO_Paymentmethod_ID as PO_Paym83_203_, businesspa0_.FIN_Financial_Account_ID as FIN_Fin84_203_, businesspa0_.EM_Einv_Deliverymode as EM_Einv85_203_, businesspa0_.PO_Financial_Account_ID as PO_Fina86_203_, businesspa0_.Customer_Blocking as Custome87_203_, businesspa0_.Vendor_Blocking as Vendor_88_203_, businesspa0_.SO_Payment_Blocking as SO_Paym89_203_, businesspa0_.PO_Payment_Blocking as PO_Paym90_203_, businesspa0_.SO_Invoice_Blocking as SO_Invo91_203_, businesspa0_.PO_Invoice_Blocking as PO_Invo92_203_, businesspa0_.SO_Order_Blocking as SO_Orde93_203_, businesspa0_.PO_Order_Blocking as PO_Orde94_203_, businesspa0_.SO_Goods_Blocking as SO_Good95_203_, businesspa0_.PO_Goods_Blocking as PO_Good96_203_, businesspa0_.Iscashvat as Iscashv97_203_, businesspa0_.EM_Advcrm_Newactivity as EM_Advc98_203_, businesspa0_.Update_Currency as Update_99_203_, businesspa0_.BP_Currency_ID as BP_Cur100_203_, businesspa0_.Birthplace as Birthp101_203_, businesspa0_.Birthday as Birthd102_203_, businesspa0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgp103_203_, businesspa0_.Is_Customer_Consent as Is_Cus104_203_, businesspa0_.EM_OBSMAIL_INVOICEVIAEMAIL as EM_OBS105_203_, businesspa0_.EM_Obsepad_Mandate_Identifier as EM_Obs106_203_, businesspa0_.EM_Obsmail_Language as EM_Obs107_203_, businesspa0_.EM_Obsepad_Mandate_Date as EM_Obs108_203_, businesspa0_.EM_Aeatsii_Rep_Taxid as EM_Aea109_203_, businesspa0_.EM_Aeatsii_Menor as EM_Aea110_203_, businesspa0_.EM_Pricm_Isintercompany as EM_Pri111_203_, businesspa0_.EM_Psat_Billtobpartner_ID as EM_Psa112_203_, businesspa0_.EM_Psat_Locator_ID as EM_Psa113_203_, businesspa0_.EM_Psat_Mobile_Request as EM_Psa114_203_, businesspa0_.EM_Prges_Glitem_ID as EM_Prg115_203_, businesspa0_.EM_Rrhh_Exemployee as EM_Rrh116_203_, businesspa0_.EM_Rrhh_Candidate as EM_Rrh117_203_, businesspa0_.EM_Prpass_No_Print_Pass as EM_Prp118_203_, businesspa0_.EM_Rrhh_Holidays_Supervisor as EM_Rrh119_203_, businesspa0_.EM_Cactal_Emp_No as EM_Cac120_203_, businesspa0_.EM_Cactal_Emp_Relationship_No as EM_Cac121_203_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as EM_Obw122_203_, businesspa0_.EM_Pruti_Addbp as EM_Pru123_203_, businesspa0_.EM_Prpass_Generatepassemployee as EM_Prp124_203_, businesspa0_.EM_Rrhh_Mainworkstation_ID as EM_Rrh125_203_, businesspa0_.EM_Rrhh_Bp_Transfer_Code as EM_Rrh126_203_, businesspa0_.EM_OBTIK_Tax_ID_Key as EM_OBT127_203_ from C_BPartner businesspa0_ where (upper((businesspa0_.Value||$3||businesspa0_.Name||$4||coalesce(to_char(businesspa0_.TaxID), $5)||$6||coalesce(to_char(businesspa0_.Name2), $7))) like upper($1) escape $8) and (exists (select $9 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID=businesspa2_.C_BPartner_ID cross join C_DocType documentty3_ where order1_.C_DocTypeTarget_ID=documentty3_.C_DocType_ID and order1_.IsSOTrx=$10 and documentty3_.IsReturn=$11 and businesspa2_.C_BPartner_ID=businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ($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)) and (order1_.AD_Client_ID in ($50 , $51)))) order by businesspa0_.Value, businesspa0_.Name, businesspa0_.TaxID, businesspa0_.Name2 limit $2 |
| 496be14648 | select array_to_string(array_agg(fin_paymen0_.FIN_Payment_Scheduledetail_ID), $15) as col_0_0_, array_to_string(array_agg(order3_.DocumentNo), $16) as col_1_0_, case when invoice7_.IsSOTrx=$17 and (organizati11_.AD_Org_ID is not null) and (organizati11_.EM_Aprm_Payment_Desc like $18) then invoice7_.POReference else invoice7_.DocumentNo end as col_2_0_, coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) as col_3_0_, coalesce(fin_paymen9_.Name, fin_paymen5_.Name) as col_4_0_, coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) as col_5_0_, max(coalesce(fin_paymen6_.Amount, fin_paymen2_.Amount)) as col_6_0_, max(coalesce(invoice7_.GrandTotal, $19)) as col_7_0_, businesspa1_.C_BPartner_ID as col_8_0_, businesspa1_.Name as col_9_0_, sum(fin_paymen0_.Amount+fin_paymen0_.Writeoffamt) as col_10_0_, coalesce(sum(fin_paymen12_.Amount), $20) as col_11_0_, case when sum(fin_paymen0_.Writeoffamt)<>$21 then $22 else $23 end as col_12_0_, case when max(fin_paymen13_.Fin_Payment_ID) is not null then $24 else $25 end as col_13_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ inner join C_BPartner businesspa1_ on fin_paymen0_.C_Bpartner_ID=businesspa1_.C_BPartner_ID left outer join FIN_Payment_Schedule fin_paymen2_ on fin_paymen0_.FIN_Payment_Schedule_Order=fin_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 where (fin_paymen0_.AD_Client_ID in ($26 , $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)) and (organizati11_.AD_Org_ID is null or organizati11_.IsActive=$27) and invoice7_.IsSOTrx=$8 and invoice7_.C_Currency_ID=$9 group by invoice7_.C_Invoice_ID , invoice7_.DocumentNo , invoice7_.C_DocType_ID , coalesce(fin_paymen6_.Fin_Paymentmethod_ID, fin_paymen2_.Fin_Paymentmethod_ID) , coalesce(fin_paymen9_.Name, fin_paymen5_.Name) , coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate) , coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority) , invoice7_.IsSOTrx , organizati11_.AD_Org_ID , organizati11_.EM_Aprm_Payment_Desc , invoice7_.POReference , businesspa1_.C_BPartner_ID , businesspa1_.Name having (upper(coalesce(fin_paymen9_.Name, fin_paymen5_.Name)) like upper($10) escape $28) and coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate)>=$11 and coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate)<=$12 order by case when max(fin_paymen13_.Fin_Payment_ID) is not null then $29 else $30 end, coalesce(fin_paymen8_.Priority, fin_paymen4_.Priority), coalesce(fin_paymen6_.ExpectedDate, fin_paymen2_.ExpectedDate), invoice7_.DocumentNo limit $13 offset $14 |
| 9a0540688d | SELECT LEVELNO FROM AD_ORG_TREE WHERE AD_ORG_ID = p_orgid AND AD_PARENT_ORG_ID = p_parentorgid AND AD_CLIENT_ID = p_clientid |
| f2e5c3fd88 | SELECT $2 FROM ONLY "public"."m_product" x WHERE "m_product_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 09f3a2812f | select invoice0_.C_Invoice_ID as C_Invoic1_260_, invoice0_.AD_Client_ID as AD_Clien2_260_, invoice0_.AD_Org_ID as AD_Org_I3_260_, invoice0_.IsActive as IsActive4_260_, invoice0_.Created as Created5_260_, invoice0_.CreatedBy as CreatedB6_260_, invoice0_.Updated as Updated7_260_, invoice0_.UpdatedBy as UpdatedB8_260_, invoice0_.IsSOTrx as IsSOTrx9_260_, invoice0_.DocumentNo as Documen10_260_, invoice0_.DocStatus as DocStat11_260_, invoice0_.DocAction as DocActi12_260_, invoice0_.Processing as Process13_260_, invoice0_.Processed as Process14_260_, invoice0_.Posted as Posted15_260_, invoice0_.C_DocType_ID as C_DocTy16_260_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_260_, invoice0_.C_Order_ID as C_Order18_260_, invoice0_.Description as Descrip19_260_, invoice0_.IsPrinted as IsPrint20_260_, invoice0_.SalesRep_ID as SalesRe21_260_, invoice0_.DateInvoiced as DateInv22_260_, invoice0_.DatePrinted as DatePri23_260_, invoice0_.DateAcct as DateAcc24_260_, invoice0_.C_BPartner_ID as C_BPart25_260_, invoice0_.C_BPartner_Location_ID as C_BPart26_260_, invoice0_.POReference as PORefer27_260_, invoice0_.IsDiscountPrinted as IsDisco28_260_, invoice0_.DateOrdered as DateOrd29_260_, invoice0_.C_Currency_ID as C_Curre30_260_, invoice0_.C_PaymentTerm_ID as C_Payme31_260_, invoice0_.C_Charge_ID as C_Charg32_260_, invoice0_.ChargeAmt as ChargeA33_260_, invoice0_.TotalLines as TotalLi34_260_, invoice0_.GrandTotal as GrandTo35_260_, invoice0_.M_PriceList_ID as M_Price36_260_, invoice0_.IsTaxIncluded as IsTaxIn37_260_, invoice0_.C_Campaign_ID as C_Campa38_260_, invoice0_.C_Project_ID as C_Proje39_260_, invoice0_.C_Activity_ID as C_Activ40_260_, invoice0_.CreateFrom as CreateF41_260_, invoice0_.GenerateTo as Generat42_260_, invoice0_.AD_User_ID as AD_User43_260_, invoice0_.CopyFrom as CopyFro44_260_, invoice0_.IsSelfService as IsSelfS45_260_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_260_, invoice0_.User1_ID as User47_260_, invoice0_.User2_ID as User48_260_, invoice0_.Withholdingamount as Withhol49_260_, invoice0_.Taxdate as Taxdate50_260_, invoice0_.C_Withholding_ID as C_Withh51_260_, invoice0_.Ispaid as Ispaid52_260_, invoice0_.EM_Einv_Generated as EM_Einv53_260_, invoice0_.Totalpaid as Totalpa54_260_, invoice0_.EM_Einv_Sent as EM_Einv55_260_, invoice0_.OutstandingAmt as Outstan56_260_, invoice0_.DaysTillDue as DaysTil57_260_, invoice0_.DueAmt as DueAmt58_260_, invoice0_.LastCalculatedOnDate as LastCal59_260_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_260_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_260_, invoice0_.Finalsettlement as Finalse62_260_, invoice0_.Daysoutstanding as Daysout63_260_, invoice0_.Percentageoverdue as Percent64_260_, invoice0_.C_Costcenter_ID as C_Costc65_260_, invoice0_.Calculate_Promotions as Calcula66_260_, invoice0_.A_Asset_ID as A_Asset67_260_, invoice0_.EM_APRM_Addpayment as EM_APRM68_260_, invoice0_.Iscashvat as Iscashv69_260_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_260_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_260_, invoice0_.Prepaymentamt as Prepaym72_260_, invoice0_.Createfromorders as Createf73_260_, invoice0_.Createfrominouts as Createf74_260_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_260_, invoice0_.Paidamtatinvoicing as Paidamt76_260_, invoice0_.EM_Obpos_Rounding_Amount as EM_Obpo77_260_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_260_, invoice0_.BPartner_ExtRef as BPartne79_260_, invoice0_.EM_Aeatsii_Send as EM_Aeat80_260_, invoice0_.EM_Obpos_Sequencename as EM_Obpo81_260_, invoice0_.EM_Aeatsii_Issent as EM_Aeat82_260_, invoice0_.EM_Obpos_Sequencenumber as EM_Obpo83_260_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat84_260_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat85_260_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat86_260_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou87_260_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat88_260_, invoice0_.EM_Ml_Select_Product as EM_Ml_S89_260_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou90_260_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat91_260_, invoice0_.EM_Prouti_Totalizations as EM_Prou92_260_, invoice0_.EM_Aeatsii_Dua as EM_Aeat93_260_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aeat94_260_, invoice0_.EM_Aeatsii_Estado as EM_Aeat95_260_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aeat96_260_, invoice0_.EM_Aeatsii_Modif as EM_Aeat97_260_, invoice0_.EM_Aeatsii_Modified as EM_Aeat98_260_, invoice0_.EM_Aeatsii_Description_ID as EM_Aeat99_260_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea100_260_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea101_260_, invoice0_.EM_Aeatsii_Dup as EM_Aea102_260_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea103_260_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea104_260_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea105_260_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea106_260_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea107_260_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea108_260_, invoice0_.EM_Aeatsii_Periodo as EM_Aea109_260_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea110_260_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea111_260_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea112_260_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea113_260_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea114_260_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea115_260_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri116_260_, invoice0_.EM_Priuti_Generated as EM_Pri117_260_, invoice0_.EM_Priuti_Date_Complete as EM_Pri118_260_, invoice0_.EM_Prges_Expediente_ID as EM_Prg119_260_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri120_260_, invoice0_.EM_Prges_Annotation_ID as EM_Prg121_260_, invoice0_.EM_Prges_Record_Number as EM_Prg122_260_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri123_260_, invoice0_.EM_Prges_Grantotal as EM_Prg124_260_, invoice0_.EM_Priuti_Validate as EM_Pri125_260_, invoice0_.EM_Priuti_Start_Review as EM_Pri126_260_, invoice0_.EM_Prges_Poreference as EM_Prg127_260_, invoice0_.em_cactl_createfromship as em_cac128_260_ from C_Invoice invoice0_ where invoice0_.IsSOTrx=$42 and invoice0_.DocStatus<>$43 and (invoice0_.AD_Org_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)) and (invoice0_.AD_Client_ID in ($39 , $40)) order by invoice0_.DateInvoiced desc, invoice0_.C_Invoice_ID desc limit $41 |
| ec9393c1b5 | delete from C_UOM where C_UOM_ID=$1 |
| fec93ea334 | UPDATE M_STORAGE_DETAIL SET QTYONHAND=QTYONHAND + COALESCE(p_qty, $20), QTYORDERONHAND=QTYORDERONHAND + v_qtyorder, DATELASTINVENTORY=COALESCE(p_datelastinventory, DATELASTINVENTORY), PREQTYONHAND=PREQTYONHAND + COALESCE(p_preqty, $21), PREQTYORDERONHAND=PREQTYORDERONHAND + v_preqtyorder, AD_CLIENT_ID=p_client, UPDATED=TO_DATE(NOW()), UPDATEDBY=p_user WHERE M_PRODUCT_ID=p_product AND M_LOCATOR_ID=p_locator AND M_ATTRIBUTESETINSTANCE_ID=v_attributesetinstance AND C_UOM_ID=p_uom AND COALESCE(M_PRODUCT_UOM_ID, $22)=COALESCE(p_product_uom, $23) |
| b93f3a3e02 | select count(*) as y0_ from AD_TreeNode this_ where this_.Node_ID=$1 and this_.Parent_ID<>$2 and this_.IsActive=$3 |
| 634a705cf9 | WITH orders AS ( SELECT SUM(ol.qtyordered) AS total FROM c_orderline ol JOIN c_order o ON o.c_order_id = ol.c_order_id WHERE ol.m_product_id = p_product AND o.ad_org_id = p_org AND o.issotrx = $6 AND o.dateordered BETWEEN current_date - v_days_consum AND current_date - $7 ), production AS ( SELECT SUM(pl.movementqty) AS total FROM m_productionline pl JOIN m_productionplan pp ON pp.m_productionplan_id = pl.m_productionplan_id JOIN m_production p ON p.m_production_id = pp.m_production_id WHERE pl.m_product_id = p_product AND pl.ad_org_id = p_org AND p.movementdate BETWEEN current_date - v_days_consum AND current_date - $8 ) SELECT COALESCE(orders.total, $9) + COALESCE(production.total, $10) FROM orders, production |
| 0a92390e0d | select invoice0_.DocumentNo as col_0_0_, businesspa2_.Name as col_1_0_, invoice0_.DateInvoiced as col_2_0_, organizati3_.Name as col_3_0_, adlisttrl1_.Name as col_4_0_ from C_Invoice invoice0_ cross join C_BPartner businesspa2_ cross join AD_Org organizati3_ cross join AD_Ref_List_Trl adlisttrl1_ cross join AD_Ref_List adlist4_ where invoice0_.C_BPartner_ID=businesspa2_.C_BPartner_ID and invoice0_.AD_Org_ID=organizati3_.AD_Org_ID and adlisttrl1_.AD_Ref_List_ID=adlist4_.AD_Ref_List_ID and invoice0_.EM_Priuti_Status_Of_Review<>$4 and adlist4_.Value=invoice0_.EM_Priuti_Status_Of_Review and adlist4_.AD_Reference_ID=$5 and adlisttrl1_.AD_Language=$1 and ($2 in (select priuti_inv6_.AD_User_ID from priuti_invoice_reviewers priuti_inv6_ where priuti_inv6_.C_Invoice_ID=invoice0_.C_Invoice_ID and (priuti_inv6_.Sequence in (select coalesce(min(priuti_inv7_.Sequence), $6) from priuti_invoice_reviewers priuti_inv7_ where priuti_inv7_.C_Invoice_ID=invoice0_.C_Invoice_ID and (priuti_inv7_.Result is null))))) limit $3 |
| af4ce1b038 | SELECT aprm_gen_paymentschedule_inv($1) FROM DUAL |
| 8d75ee1767 | INSERT INTO Fact_Acct (Fact_Acct_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy, C_AcctSchema_ID,Account_ID, AcctValue, AcctDescription,DateTrx,DateAcct, C_Period_ID,AD_Table_ID,Record_ID,Line_ID, GL_Category_ID,C_Tax_ID,PostingType,C_Currency_ID, AmtSourceDR,AmtSourceCR,AmtAcctDR,AmtAcctCR, C_UOM_ID,Qty,M_Locator_ID,M_Product_ID,C_BPartner_ID,AD_OrgTrx_ID,C_LocFrom_ID,C_LocTo_ID,C_SalesRegion_ID, C_Project_ID,C_Campaign_ID,C_Activity_ID,User1_ID,User2_ID,Description, Fact_Acct_Group_ID, SeqNo, DocBaseType, Record_ID2, A_ASSET_ID, C_WithHolding_ID, C_DocType_ID, C_Costcenter_ID, FACTACCTTYPE) VALUES ($1, $2, $3,$48,now(),$4,now(),$5, $6, $7, $8, $9, TO_DATE($10), TO_DATE($11), $12, $13, $14, $15, $16, $17, $18, $19, TO_NUMBER($20), TO_NUMBER($21), TO_NUMBER($22), TO_NUMBER($23), $24, TO_NUMBER($25), $26,$27, $28, $29,$30, $31, $32,$33, $34, $35,$36, $37, $38, $39, TO_NUMBER($40), $41, $42, $43, $44, $45, $46, $47) |
| e1d00b9071 | select prges_reco0_.Prges_Records_ID as Prges_Re1_831_, prges_reco0_.AD_Client_ID as AD_Clien2_831_, prges_reco0_.AD_Org_ID as AD_Org_I3_831_, prges_reco0_.Created as Created4_831_, prges_reco0_.Createdby as Createdb5_831_, prges_reco0_.Updated as Updated6_831_, prges_reco0_.Updatedby as Updatedb7_831_, prges_reco0_.Isactive as Isactive8_831_, prges_reco0_.Action as Action9_831_, prges_reco0_.Url as Url10_831_, prges_reco0_.Jsoninfo as Jsoninf11_831_, prges_reco0_.Error as Error12_831_, prges_reco0_.Process as Process13_831_, prges_reco0_.Status as Status14_831_, prges_reco0_.C_Invoice_ID as C_Invoi15_831_, prges_reco0_.Prges_Config_ID as Prges_C16_831_ from prges_records prges_reco0_ where prges_reco0_.Prges_Config_ID=$1 and (prges_reco0_.AD_Org_ID in ($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)) and (prges_reco0_.AD_Client_ID in ($40 , $41)) order by prges_reco0_.Created desc, prges_reco0_.Prges_Records_ID desc limit $42 offset $43 |
| 2fc2aa8125 | select materialmg0_.M_Costing_ID as M_Costin1_453_, materialmg0_.Created as Created2_453_, materialmg0_.Createdby as Createdb3_453_, materialmg0_.Updated as Updated4_453_, materialmg0_.Updatedby as Updatedb5_453_, materialmg0_.AD_Client_ID as AD_Clien6_453_, materialmg0_.AD_Org_ID as AD_Org_I7_453_, materialmg0_.M_Product_ID as M_Produc8_453_, materialmg0_.DateFrom as DateFrom9_453_, materialmg0_.DateTo as DateTo10_453_, materialmg0_.IsManual as IsManua11_453_, materialmg0_.C_InvoiceLine_ID as C_Invoi12_453_, materialmg0_.Qty as Qty13_453_, materialmg0_.Price as Price14_453_, materialmg0_.Cumstock as Cumstoc15_453_, materialmg0_.Costtype as Costtyp16_453_, materialmg0_.Ispermanent as Isperma17_453_, materialmg0_.Cost as Cost18_453_, materialmg0_.Cumcost as Cumcost19_453_, materialmg0_.Isproduction as Isprodu20_453_, materialmg0_.Isactive as Isactiv21_453_, materialmg0_.M_Warehouse_ID as M_Wareh22_453_, materialmg0_.M_Transaction_ID as M_Trans23_453_, materialmg0_.C_Currency_ID as C_Curre24_453_, materialmg0_.Originalcost as Origina25_453_ from M_Costing materialmg0_ where materialmg0_.M_Product_ID=$1 and materialmg0_.DateFrom<=$2 and materialmg0_.Costtype='AVA' and (materialmg0_.Cost is not null) and (materialmg0_.Cumstock is not null) and (materialmg0_.Cumcost is not null) and (materialmg0_.M_Warehouse_ID is null) and materialmg0_.AD_Org_ID=$3 and (materialmg0_.AD_Client_ID in ($4 , $5)) and materialmg0_.Isactive='Y' order by materialmg0_.DateFrom desc, materialmg0_.DateTo desc, materialmg0_.Created desc limit $6 |
| 2c756b6487 | vacuum analyze obmobc_logclient |
| 92c3ea2c6b | select sum(order0_.GrandTotal) as col_0_0_ from C_Order order0_ cross join C_DocType documentty1_ where order0_.C_DocTypeTarget_ID=documentty1_.C_DocType_ID and order0_.IsSOTrx=$43 and documentty1_.IsReturn=$44 and (order0_.Updated>$1 or order0_.Processed=$45) and (order0_.AD_Org_ID in ($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)) and (order0_.AD_Client_ID in ($40 , $41)) limit $42 |
| 8b47e0efaf | vacuum analyze M_Stock_Proposed |
| e4b8f19235 | select order0_.C_Order_ID as C_Order_1_276_, order0_.AD_Client_ID as AD_Clien2_276_, order0_.AD_Org_ID as AD_Org_I3_276_, order0_.IsActive as IsActive4_276_, order0_.Created as Created5_276_, order0_.CreatedBy as CreatedB6_276_, order0_.Updated as Updated7_276_, order0_.UpdatedBy as UpdatedB8_276_, order0_.IsSOTrx as IsSOTrx9_276_, order0_.DocumentNo as Documen10_276_, order0_.DocStatus as DocStat11_276_, order0_.DocAction as DocActi12_276_, order0_.Processing as Process13_276_, order0_.Processed as Process14_276_, order0_.C_DocType_ID as C_DocTy15_276_, order0_.C_DocTypeTarget_ID as C_DocTy16_276_, order0_.Description as Descrip17_276_, order0_.IsDelivered as IsDeliv18_276_, order0_.IsInvoiced as IsInvoi19_276_, order0_.IsPrinted as IsPrint20_276_, order0_.IsSelected as IsSelec21_276_, order0_.SalesRep_ID as SalesRe22_276_, order0_.DateOrdered as DateOrd23_276_, order0_.DatePromised as DatePro24_276_, order0_.DatePrinted as DatePri25_276_, order0_.DateAcct as DateAcc26_276_, order0_.C_BPartner_ID as C_BPart27_276_, order0_.BillTo_ID as BillTo_28_276_, order0_.C_BPartner_Location_ID as C_BPart29_276_, order0_.POReference as PORefer30_276_, order0_.IsDiscountPrinted as IsDisco31_276_, order0_.C_Currency_ID as C_Curre32_276_, order0_.PaymentRule as Payment33_276_, order0_.C_PaymentTerm_ID as C_Payme34_276_, order0_.InvoiceRule as Invoice35_276_, order0_.DeliveryRule as Deliver36_276_, order0_.FreightCostRule as Freight37_276_, order0_.FreightAmt as Freight38_276_, order0_.DeliveryViaRule as Deliver39_276_, order0_.M_Shipper_ID as M_Shipp40_276_, order0_.C_Charge_ID as C_Charg41_276_, order0_.ChargeAmt as ChargeA42_276_, order0_.PriorityRule as Priorit43_276_, order0_.TotalLines as TotalLi44_276_, order0_.GrandTotal as GrandTo45_276_, order0_.M_Warehouse_ID as M_Wareh46_276_, order0_.M_PriceList_ID as M_Price47_276_, order0_.IsTaxIncluded as IsTaxIn48_276_, order0_.C_Campaign_ID as C_Campa49_276_, order0_.C_Project_ID as C_Proje50_276_, order0_.C_Activity_ID as C_Activ51_276_, order0_.Posted as Posted52_276_, order0_.AD_User_ID as AD_User53_276_, order0_.CopyFrom as CopyFro54_276_, order0_.DropShip_BPartner_ID as DropShi55_276_, order0_.DropShip_Location_ID as DropShi56_276_, order0_.DropShip_User_ID as DropShi57_276_, order0_.IsSelfService as IsSelfS58_276_, order0_.AD_OrgTrx_ID as AD_OrgT59_276_, order0_.User1_ID as User60_276_, order0_.User2_ID as User61_276_, order0_.Deliverynotes as Deliver62_276_, order0_.C_Incoterms_ID as C_Incot63_276_, order0_.Incotermsdescription as Incoter64_276_, order0_.Generatetemplate as Generat65_276_, order0_.Delivery_Location_ID as Deliver66_276_, order0_.CopyFromPO as CopyFro67_276_, order0_.FIN_Paymentmethod_ID as FIN_Pay68_276_, order0_.FIN_Payment_Priority_ID as FIN_Pay69_276_, order0_.RM_PickFromShipment as RM_Pick70_276_, order0_.RM_ReceiveMaterials as RM_Rece71_276_, order0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm72_276_, order0_.RM_CreateInvoice as RM_Crea73_276_, order0_.C_Return_Reason_ID as C_Retur74_276_, order0_.RM_AddOrphanLine as RM_AddO75_276_, order0_.A_Asset_ID as A_Asset76_276_, order0_.Calculate_Promotions as Calcula77_276_, order0_.C_Costcenter_ID as C_Costc78_276_, order0_.Convertquotation as Convert79_276_, order0_.C_Reject_Reason_ID as C_Rejec80_276_, order0_.validuntil as validun81_276_, order0_.Quotation_ID as Quotati82_276_, order0_.SO_Res_Status as SO_Res_83_276_, order0_.Create_POLines as Create_84_276_, order0_.EM_Obdisc_Addpack as EM_Obdi85_276_, order0_.Iscashvat as Iscashv86_276_, order0_.EM_OBMFM_Selectfreight as EM_OBMF87_276_, order0_.EM_OBMFM_Delivery_Period_ID as EM_OBMF88_276_, order0_.RM_Pickfromreceipt as RM_Pick89_276_, order0_.Cancelandreplace as Cancela90_276_, order0_.EM_Advcrm_Newactivity as EM_Advc91_276_, order0_.EM_APRM_AddPayment as EM_APRM92_276_, order0_.EM_OBMFM_Delivery_Charges as EM_OBMF93_276_, order0_.EM_OBMFM_Freight_ID as EM_OBMF94_276_, order0_.EM_Obwpl_Generatepicking as EM_Obwp95_276_, order0_.EM_Advcrm_Opportunity_ID as EM_Advc96_276_, order0_.EM_OBMFM_Weight as EM_OBMF97_276_, order0_.EM_Obwpl_Isinpickinglist as EM_Obwp98_276_, order0_.EM_Rcinv_Contractdate as EM_Rcin99_276_, order0_.EM_Obwpl_Readypl as EM_Obw100_276_, order0_.EM_Rcinv_Initialdate as EM_Rci101_276_, order0_.EM_Rcinv_Enddate as EM_Rci102_276_, order0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgp103_276_, order0_.EM_OBMFM_Weight_Uom_ID as EM_OBM104_276_, order0_.EM_Rcinv_Frequency as EM_Rci105_276_, order0_.EM_OBMFM_Set_Weight as EM_OBM106_276_, order0_.EM_Rcinv_Renewautomatically as EM_Rci107_276_, order0_.EM_Aeatsii_Fecha_Operacion as EM_Aea108_276_, order0_.EM_Ml_Select_Product as EM_Ml_109_276_, order0_.EM_Rcinv_Renovationtimes as EM_Rci110_276_, order0_.Confirmcancelandreplace as Confir111_276_, order0_.EM_Aeatsii_Descripcion_Sii as EM_Aea112_276_, order0_.EM_Obpos_Applications_ID as EM_Obp113_276_, order0_.EM_Rcinv_Freqrenovationtime as EM_Rci114_276_, order0_.EM_Obpos_Sendemail as EM_Obp115_276_, order0_.EM_Rcinv_Ordercontract_ID as EM_Rci116_276_, order0_.EM_Obpos_Email_Status as EM_Obp117_276_, order0_.EM_Rcinv_Freqtime as EM_Rci118_276_, order0_.Cancelledorder_id as Cancel119_276_, order0_.EM_Obpos_App_Cashup_ID as EM_Obp120_276_, order0_.EM_Obpos_Createdabsolute as EM_Obp121_276_, order0_.Replacedorder_id as Replac122_276_, order0_.EM_OBPOS_NotInvoiceOnCashUp as EM_OBP123_276_, order0_.EM_Obpos_Rejected_Quotat_ID as EM_Obp124_276_, order0_.EM_Obpos_Isdeleted as EM_Obp125_276_, order0_.Iscancelled as Iscanc126_276_, order0_.EM_Obpos_Islayaway as EM_Obp127_276_, order0_.EM_Obpos_Prepaymentamt as EM_Obp128_276_, order0_.Replacementorder_ID as Replac129_276_, order0_.EM_Obpos_Prepaymentlimitamt as EM_Obp130_276_, order0_.EM_Obpos_Prepaymentlaylimitamt as EM_Obp131_276_, order0_.EM_Obpos_Rounding_Amount as EM_Obp132_276_, order0_.BPartner_ExtRef as BPartn133_276_, order0_.EM_Obpos_Sequencename as EM_Obp134_276_, order0_.EM_Prqc_Clauses_Selector as EM_Prq135_276_, order0_.EM_Obpos_Sequencenumber as EM_Obp136_276_, order0_.EM_Rcinv_Cancelcontract as EM_Rci137_276_, order0_.EM_Rcinv_Cancelleddate as EM_Rci138_276_, order0_.EM_Rcinv_Iscancelled as EM_Rci139_276_, order0_.EM_Psat_Activity_ID as EM_Psa140_276_, order0_.EM_OBSMAIL_EmailAddress as EM_OBS141_276_, order0_.EM_Prouti_Order_Stock as EM_Pro142_276_, order0_.EM_Prouti_Pregenerate_Minout as EM_Pro143_276_, order0_.EM_Prouti_Sotopo as EM_Pro144_276_, order0_.EM_Prouti_Generate_Pick_Inv as EM_Pro145_276_, order0_.EM_Pricm_Order_ID as EM_Pri146_276_, order0_.EM_Prouti_Order_ID as EM_Pro147_276_, order0_.EM_Prouti_Grandtotalinitial as EM_Pro148_276_, order0_.EM_Prouti_Dateclosed as EM_Pro149_276_, order0_.EM_Prouti_Totallinesinitial as EM_Pro150_276_, order0_.EM_Prouti_Changebpartner as EM_Pro151_276_, order0_.EM_Prouti_Recalculate_Price as EM_Pro152_276_, order0_.em_prqr_execute as em_prq153_276_, order0_.EM_Prouti_Pricecalculatetdate as EM_Pro154_276_, order0_.EM_Prqr_Execute_Purchase as EM_Prq155_276_, order0_.EM_Prouti_Reactiveorder as EM_Pro156_276_, order0_.EM_Prqr_Return_Select_Prod as EM_Prq157_276_, order0_.EM_Prouti_Totalizations as EM_Pro158_276_, order0_.em_prouti_Invoiced as em_pro159_276_, order0_.em_prouti_Received as em_pro160_276_, order0_.em_prouti_initial_received as em_pro161_276_, order0_.EM_Prouti_Status_Of_Review as EM_Pro162_276_, order0_.EM_Prouti_Validate_Order as EM_Pro163_276_, order0_.EM_Prouti_Start_Review as EM_Pro164_276_, order0_.EM_Ml_Select_Product_Byattrib as EM_Ml_165_276_, order0_.EM_Prres_Reservation_ID as EM_Prr166_276_, order0_.EM_Prres_Responsible_ID as EM_Prr167_276_, order0_.EM_Prres_Diners as EM_Prr168_276_, order0_.EM_Prres_Sended as EM_Prr169_276_, order0_.EM_Prres_Printed as EM_Prr170_276_, order0_.EM_Prouti_Initial_Bp_ID as EM_Pro171_276_, order0_.EM_Prouti_Addlines_Btn as EM_Pro172_276_, order0_.EM_Prtoma_Tomaticket_ID as EM_Prt173_276_, order0_.EM_Cactl_IsCopy as EM_Cac174_276_, order0_.EM_Prtoma_Jsonorder as EM_Prt175_276_, order0_.EM_Prres_Paid_On_Credit as EM_Prr176_276_, order0_.EM_Prtoma_Grossamount as EM_Prt177_276_, order0_.EM_Cactl_Internal_Notes_Group as EM_Cac178_276_, order0_.EM_Prouti_Changebpartner_Bgt as EM_Pro179_276_, order0_.EM_Prrgr_Locator_ID as EM_Prr180_276_, order0_.EM_Paytef_Transactionreference as EM_Pay181_276_, order0_.EM_Cactl_Indirect_Cost_ID as EM_Cac182_276_, order0_.EM_Cactl_Calculate_Cost as EM_Cac183_276_, order0_.EM_Cactl_Totalcost as EM_Cac184_276_, order0_.EM_Cactl_Forceselectedproject as EM_Cac185_276_, order0_.EM_Cactl_Verified_Return as EM_Cac186_276_, order0_.EM_Cactl_Duplicate_Budget as EM_Cac187_276_, order0_.EM_Prres_Orig_Order_ID as EM_Prr188_276_, order0_.EM_Prcpr_Is_Cloned as EM_Prc189_276_, order0_.EM_Prouti_Select_Soline as EM_Pro190_276_, order0_.EM_Prouti_Return_Quantity as EM_Pro191_276_, order0_.EM_Prqr_Executecredit as EM_Prq192_276_, order0_.Em_Prqr_Credit_Purchase_ID as Em_Prq193_276_ from C_Order order0_ cross join C_DocType documentty1_ where order0_.C_DocTypeTarget_ID=documentty1_.C_DocType_ID and order0_.IsSOTrx=$42 and documentty1_.IsReturn=$43 and (order0_.AD_Org_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)) and (order0_.AD_Client_ID in ($39 , $40)) order by order0_.DatePromised desc, order0_.C_Order_ID desc limit $41 |
| f66a111527 | select materialmg0_.M_Production_ID as M_Produc1_526_, materialmg0_.AD_Client_ID as AD_Clien2_526_, materialmg0_.AD_Org_ID as AD_Org_I3_526_, materialmg0_.IsActive as IsActive4_526_, materialmg0_.Created as Created5_526_, materialmg0_.CreatedBy as CreatedB6_526_, materialmg0_.Updated as Updated7_526_, materialmg0_.UpdatedBy as UpdatedB8_526_, materialmg0_.Name as Name9_526_, materialmg0_.Description as Descrip10_526_, materialmg0_.MovementDate as Movemen11_526_, materialmg0_.IsCreated as IsCreat12_526_, materialmg0_.Posted as Posted13_526_, materialmg0_.Processed as Process14_526_, materialmg0_.Processing as Process15_526_, materialmg0_.AD_OrgTrx_ID as AD_OrgT16_526_, materialmg0_.C_Project_ID as C_Proje17_526_, materialmg0_.C_Campaign_ID as C_Campa18_526_, materialmg0_.C_Activity_ID as C_Activ19_526_, materialmg0_.User1_ID as User20_526_, materialmg0_.User2_ID as User21_526_, materialmg0_.DocumentNo as Documen22_526_, materialmg0_.Endtime as Endtime23_526_, materialmg0_.IsSOTrx as IsSOTrx24_526_, materialmg0_.Starttime as Startti25_526_, materialmg0_.Validating as Validat26_526_, materialmg0_.C_Costcenter_ID as C_Costc27_526_, materialmg0_.A_Asset_ID as A_Asset28_526_, materialmg0_.EM_Obbom_C_Order_ID as EM_Obbo29_526_, materialmg0_.EM_Pruti_Add_Bom_Product as EM_Prut30_526_, materialmg0_.EM_Prres_Isreturned as EM_Prre31_526_ from M_Production materialmg0_ where materialmg0_.IsSOTrx=$42 and (materialmg0_.AD_Org_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)) and (materialmg0_.AD_Client_ID in ($39 , $40)) order by materialmg0_.MovementDate desc, materialmg0_.M_Production_ID desc limit $41 |
| fa1f738bce | SELECT COUNT(*) AS ID FROM C_OrderLine WHERE Replacedorderline_id = $1 AND EXISTS (SELECT $2 FROM C_Order WHERE C_Order.C_Order_ID = C_OrderLine.C_Order_ID AND C_Order.IsSOTrx=$3) AND AD_ORG_ID NOT IN ($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) |
| 3d36ea61d3 | SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, C_CURRENCY_SYMBOL($1, $8, $9) AS CONVSYM, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, C_CURRENCY_ISOSYM($2) AS CONVISOSYM FROM (SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, SUM(LINENETAMT) AS AMOUNT, SUM(MOVEMENTQTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(LINENETREF) AS AMOUNTREF, SUM(MOVEMENTQTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, C_CURRENCY_CONVERT(SUM(LINENETAMT), TRCURRENCYID, $3, TO_DATE(TRDATE), $10, TRCLIENTID, TRORGID) AS CONVAMOUNT, $11 AS CONVAMOUNTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID FROM (SELECT to_char(AD_COLUMN_IDENTIFIER(to_char($12), to_char( M_PRODUCT.M_PRODUCT_ID), to_char($13))|| CASE WHEN uomsymbol IS NULL THEN $14 ELSE to_char($15||uomsymbol||$16) END) AS NIVEL1, to_char(AD_ORG.NAME) AS NIVEL2, to_char(M_INOUT.DOCUMENTNO) AS NIVEL3, to_char($17) AS NIVEL4, to_char($18) AS NIVEL5, to_char($19) AS NIVEL6, to_char($20) AS NIVEL7, to_char($21) AS NIVEL8, to_char($22) AS NIVEL9, COALESCE(M_INOUTLINE.MOVEMENTQTY*C_ORDERLINE.PRICEACTUAL,$23) AS LINENETAMT, M_INOUTLINE.MOVEMENTQTY, M_INOUTLINE.MOVEMENTQTY*M_PRODUCT.WEIGHT AS WEIGHT, $24 AS LINENETREF, $25 AS MOVEMENTQTYREF, $26 AS WEIGHTREF, C_UOM.UOMSYMBOL, C_ORDERLINE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_ORDER.DATEORDERED, NOW())) AS TRDATE, C_ORDERLINE.AD_CLIENT_ID AS TRCLIENTID, C_ORDERLINE.AD_ORG_ID AS TRORGID FROM M_INOUTLINE left join C_ORDERLINE on M_INOUTLINE.C_ORDERLINE_ID = C_ORDERLINE.C_ORDERLINE_ID left join C_ORDER on C_ORDERLINE.C_ORDER_ID = C_ORDER.C_ORDER_ID, M_INOUT left join AD_USER on M_INOUT.SALESREP_ID = AD_USER.AD_USER_ID, C_BPARTNER left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID, C_BP_GROUP, M_PRODUCT, M_PRODUCT_CATEGORY, M_WAREHOUSE, C_UOM, AD_ORG WHERE M_INOUT.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID AND M_INOUT.M_INOUT_ID = M_INOUTLINE.M_INOUT_ID AND M_INOUTLINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID AND M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID AND M_INOUT.M_WAREHOUSE_ID = M_WAREHOUSE.M_WAREHOUSE_ID AND M_INOUTLINE.C_UOM_ID = C_UOM.C_UOM_ID AND M_INOUT.AD_ORG_ID = AD_ORG.AD_ORG_ID AND M_INOUT.ISSOTRX = $27 AND M_INOUT.PROCESSED = $28 AND $29=$30 AND M_INOUT.AD_ORG_ID IN ($31) AND M_INOUT.AD_CLIENT_ID IN ($32,$33) AND $34=$35 AND M_INOUT.MOVEMENTDATE >= TO_DATE($4) AND M_INOUT.MOVEMENTDATE < TO_DATE($5) AND C_BP_GROUP.C_BP_GROUP_ID = $6 AND C_BPARTNER.C_BPARTNER_ID IN($36) AND M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID = $7 ) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9 ORDER BY NIVEL1,NIVEL2,NIVEL3 |
| 6bc28a65f9 | SELECT COUNT(*) AS ID FROM C_OrderLine WHERE Replacedorderline_id = $1 AND EXISTS (SELECT $2 FROM C_Order WHERE C_Order.C_Order_ID = C_OrderLine.C_Order_ID AND C_Order.IsSOTrx=$3) AND AD_ORG_ID IN ($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) AND AD_CLIENT_ID IN ($42) |
| f570d33a96 | SELECT * FROM (select f.c_invoice_id as referencekey_id, $2 as ad_role_id, $3 as ad_user_id, $4 || f.documentno|| $5 as description, $6 as isActive, f.ad_org_id, f.ad_client_id, now() as created, $7 as createdBy, now() as updated, $8 as updatedBy, ad_column_identifier($9, f.c_invoice_id, $10) AS RECORD_ID FROM ( select ci.documentno, max(dateinvoiced) as dateinvoiced, max(ci.c_invoice_id) as c_invoice_id, max(ci.ad_org_id) as ad_org_id, max(ci.ad_client_id) as ad_client_id from c_invoice ci join c_order co on co.c_order_id=ci.c_order_id where ci.issotrx=$11 and co.em_obpos_applications_id is not null and ci.dateinvoiced >= current_date - $12 group by ci.documentno, EXTRACT($13 FROM dateinvoiced), ci.c_doctype_id having count(ci.documentno)>$14 order by max(dateinvoiced) desc ) as f) AAA where not exists (select $15 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $16) != $17) |
| 1c688a8b54 | SELECT $2 FROM ONLY "public"."m_inoutline" x WHERE $1::pg_catalog.text OPERATOR(pg_catalog.=) "c_aum"::pg_catalog.text FOR KEY SHARE OF x |
| 1fbcf388f5 | select producttrl0_.M_Product_Trl_ID as M_Produc1_524_, producttrl0_.M_Product_ID as M_Produc2_524_, producttrl0_.AD_Language as AD_Langu3_524_, producttrl0_.AD_Client_ID as AD_Clien4_524_, producttrl0_.AD_Org_ID as AD_Org_I5_524_, producttrl0_.IsActive as IsActive6_524_, producttrl0_.Created as Created7_524_, producttrl0_.CreatedBy as CreatedB8_524_, producttrl0_.Updated as Updated9_524_, producttrl0_.UpdatedBy as Updated10_524_, producttrl0_.Name as Name11_524_, producttrl0_.DocumentNote as Documen12_524_, producttrl0_.IsTranslated as IsTrans13_524_ from M_Product_Trl producttrl0_ where producttrl0_.M_Product_ID=$1 and producttrl0_.AD_Language=$2 and producttrl0_.IsActive=$4 limit $3 |
| ac7478aac8 | select prges_reco0_.Prges_Records_ID as Prges_Re1_831_, prges_reco0_.AD_Client_ID as AD_Clien2_831_, prges_reco0_.AD_Org_ID as AD_Org_I3_831_, prges_reco0_.Created as Created4_831_, prges_reco0_.Createdby as Createdb5_831_, prges_reco0_.Updated as Updated6_831_, prges_reco0_.Updatedby as Updatedb7_831_, prges_reco0_.Isactive as Isactive8_831_, prges_reco0_.Action as Action9_831_, prges_reco0_.Url as Url10_831_, prges_reco0_.Jsoninfo as Jsoninf11_831_, prges_reco0_.Error as Error12_831_, prges_reco0_.Process as Process13_831_, prges_reco0_.Status as Status14_831_, prges_reco0_.C_Invoice_ID as C_Invoi15_831_, prges_reco0_.Prges_Config_ID as Prges_C16_831_ from prges_records prges_reco0_ where prges_reco0_.Prges_Config_ID=$1 and (prges_reco0_.AD_Org_ID in ($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)) and (prges_reco0_.AD_Client_ID in ($40 , $41)) order by prges_reco0_.Created desc, prges_reco0_.Prges_Records_ID desc limit $42 |
| 4aae53f3da | SELECT * FROM (select c_order_id AS referencekey_id, ad_column_identifier_std($2, c_order_id) AS record_id, $3 AS ad_role_id, $4 AS ad_user_id, $5 || documentno AS description, $6 AS isActive, $7 AS ad_org_id, ad_client_id AS ad_client_id, now() AS created, $8 AS createdBy, now() AS updated, $9 AS updatedBy from c_order where ( em_prouti_Received <> (coalesce((select case when sum(abs(ol.qtyordered)) = $10 then $11 else trunc(coalesce(sum(abs(coalesce(( select least(coalesce(abs(sum(il.movementqty)), $12), abs(ol.qtyordered)) from m_inoutline il left join m_inout i on i.m_inout_id=il.m_inout_id where i.docstatus<>$13 and il.c_orderline_id=ol.c_orderline_id ),$14))), $15)/sum(abs(ol.qtyordered)) * $16, $17) end from c_orderline ol where ol.c_order_id=c_order.c_order_id and ol.c_order_discount_id is null ),$18)) or em_prouti_Invoiced <> (coalesce(( select case when sum(abs(ol.qtyordered)) = $19 then $20 else round(coalesce(sum(abs(coalesce(( select least(coalesce(abs(sum(il.qtyinvoiced)), $21), abs(ol.qtyordered)) from c_invoiceline il left join c_invoice i on i.c_invoice_id=il.c_invoice_id where i.docstatus<>$22 and il.c_orderline_id=ol.c_orderline_id ),$23))), $24)/sum(abs(ol.qtyordered)) * $25, $26) end from c_orderline ol where ol.c_order_id=c_order.c_order_id and ol.c_order_discount_id is null), $27)) ) and issotrx=$28 and docstatus <> $29) AAA where not exists (select $30 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $31) != $32) |
| 18c54477aa | SELECT * FROM (select aat.ad_audit_trail_id as referencekey_id, $2 as ad_role_id, $3 as ad_user_id, $4 || co.documentno || $5 || us."name" || $6||co.updated as description, $7 as isActive, aat.ad_org_id, aat.ad_client_id, now() as created, $8 as createdBy, now() as updated, $9 as updatedBy, ad_column_identifier($10, co.c_order_id, $11) AS RECORD_ID from ad_audit_trail aat left join c_order co on co.c_order_id=aat.record_id left join c_doctype cd on cd.c_doctype_id=co.c_doctype_id left join ad_user us on us.ad_user_id= co.updatedby where aat.old_char=$12 and aat.new_char=$13 and co.docstatus = $14 and aat.event_time >= current_date -$15 and cd.em_prres_restaurant=$16) AAA where not exists (select $17 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $18) != $19) |
| 41ebce9415 | select order0_.C_Order_ID as C_Order_1_276_, order0_.AD_Client_ID as AD_Clien2_276_, order0_.AD_Org_ID as AD_Org_I3_276_, order0_.IsActive as IsActive4_276_, order0_.Created as Created5_276_, order0_.CreatedBy as CreatedB6_276_, order0_.Updated as Updated7_276_, order0_.UpdatedBy as UpdatedB8_276_, order0_.IsSOTrx as IsSOTrx9_276_, order0_.DocumentNo as Documen10_276_, order0_.DocStatus as DocStat11_276_, order0_.DocAction as DocActi12_276_, order0_.Processing as Process13_276_, order0_.Processed as Process14_276_, order0_.C_DocType_ID as C_DocTy15_276_, order0_.C_DocTypeTarget_ID as C_DocTy16_276_, order0_.Description as Descrip17_276_, order0_.IsDelivered as IsDeliv18_276_, order0_.IsInvoiced as IsInvoi19_276_, order0_.IsPrinted as IsPrint20_276_, order0_.IsSelected as IsSelec21_276_, order0_.SalesRep_ID as SalesRe22_276_, order0_.DateOrdered as DateOrd23_276_, order0_.DatePromised as DatePro24_276_, order0_.DatePrinted as DatePri25_276_, order0_.DateAcct as DateAcc26_276_, order0_.C_BPartner_ID as C_BPart27_276_, order0_.BillTo_ID as BillTo_28_276_, order0_.C_BPartner_Location_ID as C_BPart29_276_, order0_.POReference as PORefer30_276_, order0_.IsDiscountPrinted as IsDisco31_276_, order0_.C_Currency_ID as C_Curre32_276_, order0_.PaymentRule as Payment33_276_, order0_.C_PaymentTerm_ID as C_Payme34_276_, order0_.InvoiceRule as Invoice35_276_, order0_.DeliveryRule as Deliver36_276_, order0_.FreightCostRule as Freight37_276_, order0_.FreightAmt as Freight38_276_, order0_.DeliveryViaRule as Deliver39_276_, order0_.M_Shipper_ID as M_Shipp40_276_, order0_.C_Charge_ID as C_Charg41_276_, order0_.ChargeAmt as ChargeA42_276_, order0_.PriorityRule as Priorit43_276_, order0_.TotalLines as TotalLi44_276_, order0_.GrandTotal as GrandTo45_276_, order0_.M_Warehouse_ID as M_Wareh46_276_, order0_.M_PriceList_ID as M_Price47_276_, order0_.IsTaxIncluded as IsTaxIn48_276_, order0_.C_Campaign_ID as C_Campa49_276_, order0_.C_Project_ID as C_Proje50_276_, order0_.C_Activity_ID as C_Activ51_276_, order0_.Posted as Posted52_276_, order0_.AD_User_ID as AD_User53_276_, order0_.CopyFrom as CopyFro54_276_, order0_.DropShip_BPartner_ID as DropShi55_276_, order0_.DropShip_Location_ID as DropShi56_276_, order0_.DropShip_User_ID as DropShi57_276_, order0_.IsSelfService as IsSelfS58_276_, order0_.AD_OrgTrx_ID as AD_OrgT59_276_, order0_.User1_ID as User60_276_, order0_.User2_ID as User61_276_, order0_.Deliverynotes as Deliver62_276_, order0_.C_Incoterms_ID as C_Incot63_276_, order0_.Incotermsdescription as Incoter64_276_, order0_.Generatetemplate as Generat65_276_, order0_.Delivery_Location_ID as Deliver66_276_, order0_.CopyFromPO as CopyFro67_276_, order0_.FIN_Paymentmethod_ID as FIN_Pay68_276_, order0_.FIN_Payment_Priority_ID as FIN_Pay69_276_, order0_.RM_PickFromShipment as RM_Pick70_276_, order0_.RM_ReceiveMaterials as RM_Rece71_276_, order0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm72_276_, order0_.RM_CreateInvoice as RM_Crea73_276_, order0_.C_Return_Reason_ID as C_Retur74_276_, order0_.RM_AddOrphanLine as RM_AddO75_276_, order0_.A_Asset_ID as A_Asset76_276_, order0_.Calculate_Promotions as Calcula77_276_, order0_.C_Costcenter_ID as C_Costc78_276_, order0_.Convertquotation as Convert79_276_, order0_.C_Reject_Reason_ID as C_Rejec80_276_, order0_.validuntil as validun81_276_, order0_.Quotation_ID as Quotati82_276_, order0_.SO_Res_Status as SO_Res_83_276_, order0_.Create_POLines as Create_84_276_, order0_.EM_Obdisc_Addpack as EM_Obdi85_276_, order0_.Iscashvat as Iscashv86_276_, order0_.EM_OBMFM_Selectfreight as EM_OBMF87_276_, order0_.EM_OBMFM_Delivery_Period_ID as EM_OBMF88_276_, order0_.RM_Pickfromreceipt as RM_Pick89_276_, order0_.Cancelandreplace as Cancela90_276_, order0_.EM_Advcrm_Newactivity as EM_Advc91_276_, order0_.EM_APRM_AddPayment as EM_APRM92_276_, order0_.EM_OBMFM_Delivery_Charges as EM_OBMF93_276_, order0_.EM_OBMFM_Freight_ID as EM_OBMF94_276_, order0_.EM_Obwpl_Generatepicking as EM_Obwp95_276_, order0_.EM_Advcrm_Opportunity_ID as EM_Advc96_276_, order0_.EM_OBMFM_Weight as EM_OBMF97_276_, order0_.EM_Obwpl_Isinpickinglist as EM_Obwp98_276_, order0_.EM_Rcinv_Contractdate as EM_Rcin99_276_, order0_.EM_Obwpl_Readypl as EM_Obw100_276_, order0_.EM_Rcinv_Initialdate as EM_Rci101_276_, order0_.EM_Rcinv_Enddate as EM_Rci102_276_, order0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgp103_276_, order0_.EM_OBMFM_Weight_Uom_ID as EM_OBM104_276_, order0_.EM_Rcinv_Frequency as EM_Rci105_276_, order0_.EM_OBMFM_Set_Weight as EM_OBM106_276_, order0_.EM_Rcinv_Renewautomatically as EM_Rci107_276_, order0_.EM_Aeatsii_Fecha_Operacion as EM_Aea108_276_, order0_.EM_Ml_Select_Product as EM_Ml_109_276_, order0_.EM_Rcinv_Renovationtimes as EM_Rci110_276_, order0_.Confirmcancelandreplace as Confir111_276_, order0_.EM_Aeatsii_Descripcion_Sii as EM_Aea112_276_, order0_.EM_Obpos_Applications_ID as EM_Obp113_276_, order0_.EM_Rcinv_Freqrenovationtime as EM_Rci114_276_, order0_.EM_Obpos_Sendemail as EM_Obp115_276_, order0_.EM_Rcinv_Ordercontract_ID as EM_Rci116_276_, order0_.EM_Obpos_Email_Status as EM_Obp117_276_, order0_.EM_Rcinv_Freqtime as EM_Rci118_276_, order0_.Cancelledorder_id as Cancel119_276_, order0_.EM_Obpos_App_Cashup_ID as EM_Obp120_276_, order0_.EM_Obpos_Createdabsolute as EM_Obp121_276_, order0_.Replacedorder_id as Replac122_276_, order0_.EM_OBPOS_NotInvoiceOnCashUp as EM_OBP123_276_, order0_.EM_Obpos_Rejected_Quotat_ID as EM_Obp124_276_, order0_.EM_Obpos_Isdeleted as EM_Obp125_276_, order0_.Iscancelled as Iscanc126_276_, order0_.EM_Obpos_Islayaway as EM_Obp127_276_, order0_.EM_Obpos_Prepaymentamt as EM_Obp128_276_, order0_.Replacementorder_ID as Replac129_276_, order0_.EM_Obpos_Prepaymentlimitamt as EM_Obp130_276_, order0_.EM_Obpos_Prepaymentlaylimitamt as EM_Obp131_276_, order0_.EM_Obpos_Rounding_Amount as EM_Obp132_276_, order0_.BPartner_ExtRef as BPartn133_276_, order0_.EM_Obpos_Sequencename as EM_Obp134_276_, order0_.EM_Prqc_Clauses_Selector as EM_Prq135_276_, order0_.EM_Obpos_Sequencenumber as EM_Obp136_276_, order0_.EM_Rcinv_Cancelcontract as EM_Rci137_276_, order0_.EM_Rcinv_Cancelleddate as EM_Rci138_276_, order0_.EM_Rcinv_Iscancelled as EM_Rci139_276_, order0_.EM_Psat_Activity_ID as EM_Psa140_276_, order0_.EM_OBSMAIL_EmailAddress as EM_OBS141_276_, order0_.EM_Prouti_Order_Stock as EM_Pro142_276_, order0_.EM_Prouti_Pregenerate_Minout as EM_Pro143_276_, order0_.EM_Prouti_Sotopo as EM_Pro144_276_, order0_.EM_Prouti_Generate_Pick_Inv as EM_Pro145_276_, order0_.EM_Pricm_Order_ID as EM_Pri146_276_, order0_.EM_Prouti_Order_ID as EM_Pro147_276_, order0_.EM_Prouti_Grandtotalinitial as EM_Pro148_276_, order0_.EM_Prouti_Dateclosed as EM_Pro149_276_, order0_.EM_Prouti_Totallinesinitial as EM_Pro150_276_, order0_.EM_Prouti_Changebpartner as EM_Pro151_276_, order0_.EM_Prouti_Recalculate_Price as EM_Pro152_276_, order0_.em_prqr_execute as em_prq153_276_, order0_.EM_Prouti_Pricecalculatetdate as EM_Pro154_276_, order0_.EM_Prqr_Execute_Purchase as EM_Prq155_276_, order0_.EM_Prouti_Reactiveorder as EM_Pro156_276_, order0_.EM_Prqr_Return_Select_Prod as EM_Prq157_276_, order0_.EM_Prouti_Totalizations as EM_Pro158_276_, order0_.em_prouti_Invoiced as em_pro159_276_, order0_.em_prouti_Received as em_pro160_276_, order0_.em_prouti_initial_received as em_pro161_276_, order0_.EM_Prouti_Status_Of_Review as EM_Pro162_276_, order0_.EM_Prouti_Validate_Order as EM_Pro163_276_, order0_.EM_Prouti_Start_Review as EM_Pro164_276_, order0_.EM_Ml_Select_Product_Byattrib as EM_Ml_165_276_, order0_.EM_Prres_Reservation_ID as EM_Prr166_276_, order0_.EM_Prres_Responsible_ID as EM_Prr167_276_, order0_.EM_Prres_Diners as EM_Prr168_276_, order0_.EM_Prres_Sended as EM_Prr169_276_, order0_.EM_Prres_Printed as EM_Prr170_276_, order0_.EM_Prouti_Initial_Bp_ID as EM_Pro171_276_, order0_.EM_Prouti_Addlines_Btn as EM_Pro172_276_, order0_.EM_Prtoma_Tomaticket_ID as EM_Prt173_276_, order0_.EM_Cactl_IsCopy as EM_Cac174_276_, order0_.EM_Prtoma_Jsonorder as EM_Prt175_276_, order0_.EM_Prres_Paid_On_Credit as EM_Prr176_276_, order0_.EM_Prtoma_Grossamount as EM_Prt177_276_, order0_.EM_Cactl_Internal_Notes_Group as EM_Cac178_276_, order0_.EM_Prouti_Changebpartner_Bgt as EM_Pro179_276_, order0_.EM_Prrgr_Locator_ID as EM_Prr180_276_, order0_.EM_Paytef_Transactionreference as EM_Pay181_276_, order0_.EM_Cactl_Indirect_Cost_ID as EM_Cac182_276_, order0_.EM_Cactl_Calculate_Cost as EM_Cac183_276_, order0_.EM_Cactl_Totalcost as EM_Cac184_276_, order0_.EM_Cactl_Forceselectedproject as EM_Cac185_276_, order0_.EM_Cactl_Verified_Return as EM_Cac186_276_, order0_.EM_Cactl_Duplicate_Budget as EM_Cac187_276_, order0_.EM_Prres_Orig_Order_ID as EM_Prr188_276_, order0_.EM_Prcpr_Is_Cloned as EM_Prc189_276_, order0_.EM_Prouti_Select_Soline as EM_Pro190_276_, order0_.EM_Prouti_Return_Quantity as EM_Pro191_276_, order0_.EM_Prqr_Executecredit as EM_Prq192_276_, order0_.Em_Prqr_Credit_Purchase_ID as Em_Prq193_276_ from C_Order order0_ cross join C_DocType documentty1_ where order0_.C_DocTypeTarget_ID=documentty1_.C_DocType_ID and (upper(order0_.DocumentNo) like upper($1) escape $43) and order0_.IsSOTrx=$44 and documentty1_.IsReturn=$45 and (order0_.AD_Org_ID in ($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)) and (order0_.AD_Client_ID in ($40 , $41)) order by order0_.DatePromised desc, order0_.C_Order_ID desc limit $42 |
| 281ee3922a | SELECT $2 FROM ONLY "public"."c_order" x WHERE "c_order_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 77c9f44e37 | SELECT * FROM M_INOUT_CREATE($1, $3, $4, $5, $6) |
| fa5e805d20 | insert into M_Transaction (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, MovementType, M_Locator_ID, M_Product_ID, MovementDate, MovementQty, M_ProductionLine_ID, M_AttributeSetInstance_ID, C_UOM_ID, TrxProcessDate, IsCostCalculated, Costing_Status, Checkreservedqty, Isprocessed, Checkpricedifference, EM_Prouti_Exported, Manualcostadjustment, IsCostPermanent, M_Transaction_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25) |
| 10410964a2 | SELECT $2 FROM ONLY "public"."ad_org" x WHERE "ad_org_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 7e62f3b264 | select cactl_vari0_.Cactl_Variety_Product_ID as Cactl_Va1_366_, cactl_vari0_.AD_Client_ID as AD_Clien2_366_, cactl_vari0_.AD_Org_ID as AD_Org_I3_366_, cactl_vari0_.Isactive as Isactive4_366_, cactl_vari0_.Created as Created5_366_, cactl_vari0_.Createdby as Createdb6_366_, cactl_vari0_.Updated as Updated7_366_, cactl_vari0_.Updatedby as Updatedb8_366_, cactl_vari0_.M_Product_ID as M_Produc9_366_, cactl_vari0_.C_Bpartner_ID as C_Bpart10_366_, cactl_vari0_.C_Uom_ID as C_Uom_I11_366_, cactl_vari0_.Price as Price12_366_, cactl_vari0_.Cactl_Variety_ID as Cactl_V13_366_, cactl_vari0_.Pricelist as Priceli14_366_, cactl_vari0_.Date_From as Date_Fr15_366_, cactl_vari0_.Date_To as Date_To16_366_, cactl_vari0_.Vendorproductno as Vendorp17_366_, cactl_vari0_.Iscurrentvendor as Iscurre18_366_, cactl_vari0_.Isprocessing as Isproce19_366_ from cactl_variety_product cactl_vari0_ left outer join C_BPartner businesspa1_ on cactl_vari0_.C_Bpartner_ID=businesspa1_.C_BPartner_ID left outer join C_UOM uom2_ on cactl_vari0_.C_Uom_ID=uom2_.C_UOM_ID left outer join cactl_variety cactl_vari3_ on cactl_vari0_.Cactl_Variety_ID=cactl_vari3_.Cactl_Variety_ID where (cactl_vari0_.AD_Org_ID in ($4 , $5 , $6 , $7 , $8 , $9 , $10)) and (cactl_vari0_.AD_Client_ID in ($1 , $2)) and cactl_vari0_.Isactive=$11 order by businesspa1_.Value, businesspa1_.Name, businesspa1_.TaxID, businesspa1_.Name2, uom2_.Name, cactl_vari0_.Price, cactl_vari3_.Name, cactl_vari3_.Value, cactl_vari0_.Cactl_Variety_Product_ID limit $3 |
| 8ec2df7b9d | select cactl_vari0_.Cactl_Variety_Product_ID as Cactl_Va1_366_, cactl_vari0_.AD_Client_ID as AD_Clien2_366_, cactl_vari0_.AD_Org_ID as AD_Org_I3_366_, cactl_vari0_.Isactive as Isactive4_366_, cactl_vari0_.Created as Created5_366_, cactl_vari0_.Createdby as Createdb6_366_, cactl_vari0_.Updated as Updated7_366_, cactl_vari0_.Updatedby as Updatedb8_366_, cactl_vari0_.M_Product_ID as M_Produc9_366_, cactl_vari0_.C_Bpartner_ID as C_Bpart10_366_, cactl_vari0_.C_Uom_ID as C_Uom_I11_366_, cactl_vari0_.Price as Price12_366_, cactl_vari0_.Cactl_Variety_ID as Cactl_V13_366_, cactl_vari0_.Pricelist as Priceli14_366_, cactl_vari0_.Date_From as Date_Fr15_366_, cactl_vari0_.Date_To as Date_To16_366_, cactl_vari0_.Vendorproductno as Vendorp17_366_, cactl_vari0_.Iscurrentvendor as Iscurre18_366_, cactl_vari0_.Isprocessing as Isproce19_366_ from cactl_variety_product cactl_vari0_ left outer join C_BPartner businesspa1_ on cactl_vari0_.C_Bpartner_ID=businesspa1_.C_BPartner_ID left outer join C_UOM uom2_ on cactl_vari0_.C_Uom_ID=uom2_.C_UOM_ID left outer join cactl_variety cactl_vari3_ on cactl_vari0_.Cactl_Variety_ID=cactl_vari3_.Cactl_Variety_ID where (cactl_vari0_.AD_Org_ID in ($4 , $5 , $6 , $7 , $8)) and (cactl_vari0_.AD_Client_ID in ($1 , $2)) and cactl_vari0_.Isactive=$9 order by businesspa1_.Value, businesspa1_.Name, businesspa1_.TaxID, businesspa1_.Name2, uom2_.Name, cactl_vari0_.Price, cactl_vari3_.Name, cactl_vari3_.Value, cactl_vari0_.Cactl_Variety_Product_ID limit $3 |
| 98d4183d4b | vacuum analyze C_Import_Entry_Archive |
| e1739d379d | COPY public.c_invoice (c_invoice_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, issotrx, documentno, docstatus, docaction, processing, processed, posted, c_doctype_id, c_doctypetarget_id, c_order_id, description, isprinted, salesrep_id, dateinvoiced, dateprinted, dateacct, c_bpartner_id, c_bpartner_location_id, poreference, isdiscountprinted, dateordered, c_currency_id, c_paymentterm_id, c_charge_id, chargeamt, totallines, grandtotal, m_pricelist_id, istaxincluded, c_campaign_id, c_project_id, c_activity_id, createfrom, generateto, ad_user_id, copyfrom, isselfservice, ad_orgtrx_id, user1_id, user2_id, withholdingamount, taxdate, c_withholding_id, ispaid, totalpaid, outstandingamt, daystilldue, dueamt, lastcalculatedondate, fin_paymentmethod_id, fin_payment_priority_id, finalsettlement, daysoutstanding, percentageoverdue, c_costcenter_id, calculate_promotions, a_asset_id, iscashvat, prepaymentamt, createfromorders, createfrominouts, em_aprm_addpayment, em_aprm_processinvoice, paidamtatinvoicing, bpartner_extref, em_einv_generated, em_einv_sent, em_aeatsii_send, em_aeatsii_issent, em_aeatsii_fecha_operacion, em_aeatsii_clave_tipo, em_aeatsii_motivo_rectif, em_aeatsii_clave_tipo_fc, em_aeatsii_tipo_rectif, em_aeatsii_dua, em_aeatsii_fecha_dua, em_aeatsii_estado, em_aeatsii_error_registral, em_aeatsii_modif, em_aeatsii_modified, em_aeatsii_description_id, em_aeatsii_descripcion_sii, em_aeatsii_fecha_reg_cont, em_aeatsii_dup, em_aeatsii_error_code, em_aeatsii_error_msg, em_aeatsii_unsubscribe, em_aeatsii_pur_description_id, em_aeatsii_multi_dua, em_aeatsii_ejercicio, em_aeatsii_periodo, em_aeatsii_autofactura, em_aeatsii_invoice_id, em_aeatsii_insiidate, em_aeatsii_cause_exemption_id, em_aeatsii_isauthorization, em_aeatsii_authorizationno, em_obpos_rounding_amount, em_ml_select_product, em_prouti_recalculate_price, em_prouti_pricecalculatetdate, em_prouti_totalizations, em_obcma_c_poc_email_id, em_obpos_sequencename, em_obpos_sequencenumber, em_advcrm_newactivity, em_priuti_createpurchinv, em_priuti_generated, em_priuti_date_complete, em_priuti_user_complete_id, em_priuti_status_of_review, em_priuti_validate, em_priuti_start_review, em_prges_expediente_id, em_prges_annotation_id, em_prges_record_number, em_prges_grantotal, em_sgpcrm_securitygroups_id, em_prges_poreference, em_cactl_createfromship) TO stdout |
| 1b89da5cec | BEGIN |
| 33ff47c769 | SELECT COUNT(*) AS ID FROM C_OrderLine WHERE Replacedorderline_id = $1 AND EXISTS (SELECT $2 FROM C_Order WHERE C_Order.C_Order_ID = C_OrderLine.C_Order_ID AND EXISTS (SELECT $3 FROM C_BPartner WHERE C_BPartner.C_BPartner_ID = C_Order.C_BPartner_ID AND EXISTS (SELECT $4 FROM C_BPartner WHERE C_BPartner.C_BPartner_ID = C_BPartner.C_BPartner_ID))) AND AD_ORG_ID NOT IN ($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) |
| 181bc0438f | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 67a75a3409 | COPY public.fact_acct (fact_acct_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, c_acctschema_id, account_id, datetrx, dateacct, c_period_id, ad_table_id, record_id, line_id, gl_category_id, c_tax_id, m_locator_id, postingtype, c_currency_id, amtsourcedr, amtsourcecr, amtacctdr, amtacctcr, c_uom_id, qty, m_product_id, c_bpartner_id, ad_orgtrx_id, c_locfrom_id, c_locto_id, c_salesregion_id, c_project_id, c_campaign_id, c_activity_id, user1_id, user2_id, description, a_asset_id, fact_acct_group_id, seqno, factaccttype, docbasetype, acctvalue, acctdescription, record_id2, c_withholding_id, c_doctype_id, c_costcenter_id, ismodify, datebalanced) TO stdout |
| c057bbbc51 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 2ce9536368 | vacuum analyze prsync_entry |
| 25ca5e8c6a | select warehouse0_.M_Warehouse_ID as M_Wareho1_563_, warehouse0_.AD_Client_ID as AD_Clien2_563_, warehouse0_.AD_Org_ID as AD_Org_I3_563_, warehouse0_.IsActive as IsActive4_563_, warehouse0_.Created as Created5_563_, warehouse0_.CreatedBy as CreatedB6_563_, warehouse0_.Updated as Updated7_563_, warehouse0_.UpdatedBy as UpdatedB8_563_, warehouse0_.Value as Value9_563_, warehouse0_.Name as Name10_563_, warehouse0_.Description as Descrip11_563_, warehouse0_.C_Location_ID as C_Locat12_563_, warehouse0_.Separator as Separat13_563_, warehouse0_.IsShipper as IsShipp14_563_, warehouse0_.Shippercode as Shipper15_563_, warehouse0_.FromDocumentNo as FromDoc16_563_, warehouse0_.ToDocumentNo as ToDocum17_563_, warehouse0_.M_Returnlocator_ID as M_Retur18_563_, warehouse0_.M_Warehouse_Rule_ID as M_Wareh19_563_, warehouse0_.Isallocated as Isalloc20_563_, warehouse0_.EM_Pricm_Isintransit as EM_Pric21_563_, warehouse0_.EM_Cactl_Centralwh as EM_Cact22_563_, warehouse0_.EM_Prinv_Org_ID as EM_Prin23_563_, warehouse0_.EM_Prdo_Istransit as EM_Prdo24_563_, warehouse0_.EM_Obwpl_Outlocator_ID as EM_Obwp25_563_, warehouse0_.EM_Prdo_Priority as EM_Prdo26_563_, warehouse0_.EM_Prqr_Process_Customer_Ret as EM_Prqr27_563_ from M_Warehouse warehouse0_ where (upper(warehouse0_.Name) like upper($1) escape $3) and (exists (select $4 from C_Order order1_ inner join M_Warehouse warehouse2_ on order1_.M_Warehouse_ID=warehouse2_.M_Warehouse_ID cross join C_DocType documentty3_ where order1_.C_DocTypeTarget_ID=documentty3_.C_DocType_ID and order1_.IsSOTrx=$5 and documentty3_.IsReturn=$6 and warehouse2_.M_Warehouse_ID=warehouse0_.M_Warehouse_ID and (order1_.AD_Org_ID in ($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)) and (order1_.AD_Client_ID in ($45 , $46)))) order by warehouse0_.Name limit $2 |
| 7f59edd627 | SELECT 1 FROM ONLY "public"."m_locator" x WHERE "m_locator_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| b76ef6c915 | select order0_.C_Order_ID as C_Order_1_276_, order0_.AD_Client_ID as AD_Clien2_276_, order0_.AD_Org_ID as AD_Org_I3_276_, order0_.IsActive as IsActive4_276_, order0_.Created as Created5_276_, order0_.CreatedBy as CreatedB6_276_, order0_.Updated as Updated7_276_, order0_.UpdatedBy as UpdatedB8_276_, order0_.IsSOTrx as IsSOTrx9_276_, order0_.DocumentNo as Documen10_276_, order0_.DocStatus as DocStat11_276_, order0_.DocAction as DocActi12_276_, order0_.Processing as Process13_276_, order0_.Processed as Process14_276_, order0_.C_DocType_ID as C_DocTy15_276_, order0_.C_DocTypeTarget_ID as C_DocTy16_276_, order0_.Description as Descrip17_276_, order0_.IsDelivered as IsDeliv18_276_, order0_.IsInvoiced as IsInvoi19_276_, order0_.IsPrinted as IsPrint20_276_, order0_.IsSelected as IsSelec21_276_, order0_.SalesRep_ID as SalesRe22_276_, order0_.DateOrdered as DateOrd23_276_, order0_.DatePromised as DatePro24_276_, order0_.DatePrinted as DatePri25_276_, order0_.DateAcct as DateAcc26_276_, order0_.C_BPartner_ID as C_BPart27_276_, order0_.BillTo_ID as BillTo_28_276_, order0_.C_BPartner_Location_ID as C_BPart29_276_, order0_.POReference as PORefer30_276_, order0_.IsDiscountPrinted as IsDisco31_276_, order0_.C_Currency_ID as C_Curre32_276_, order0_.PaymentRule as Payment33_276_, order0_.C_PaymentTerm_ID as C_Payme34_276_, order0_.InvoiceRule as Invoice35_276_, order0_.DeliveryRule as Deliver36_276_, order0_.FreightCostRule as Freight37_276_, order0_.FreightAmt as Freight38_276_, order0_.DeliveryViaRule as Deliver39_276_, order0_.M_Shipper_ID as M_Shipp40_276_, order0_.C_Charge_ID as C_Charg41_276_, order0_.ChargeAmt as ChargeA42_276_, order0_.PriorityRule as Priorit43_276_, order0_.TotalLines as TotalLi44_276_, order0_.GrandTotal as GrandTo45_276_, order0_.M_Warehouse_ID as M_Wareh46_276_, order0_.M_PriceList_ID as M_Price47_276_, order0_.IsTaxIncluded as IsTaxIn48_276_, order0_.C_Campaign_ID as C_Campa49_276_, order0_.C_Project_ID as C_Proje50_276_, order0_.C_Activity_ID as C_Activ51_276_, order0_.Posted as Posted52_276_, order0_.AD_User_ID as AD_User53_276_, order0_.CopyFrom as CopyFro54_276_, order0_.DropShip_BPartner_ID as DropShi55_276_, order0_.DropShip_Location_ID as DropShi56_276_, order0_.DropShip_User_ID as DropShi57_276_, order0_.IsSelfService as IsSelfS58_276_, order0_.AD_OrgTrx_ID as AD_OrgT59_276_, order0_.User1_ID as User60_276_, order0_.User2_ID as User61_276_, order0_.Deliverynotes as Deliver62_276_, order0_.C_Incoterms_ID as C_Incot63_276_, order0_.Incotermsdescription as Incoter64_276_, order0_.Generatetemplate as Generat65_276_, order0_.Delivery_Location_ID as Deliver66_276_, order0_.CopyFromPO as CopyFro67_276_, order0_.FIN_Paymentmethod_ID as FIN_Pay68_276_, order0_.FIN_Payment_Priority_ID as FIN_Pay69_276_, order0_.RM_PickFromShipment as RM_Pick70_276_, order0_.RM_ReceiveMaterials as RM_Rece71_276_, order0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm72_276_, order0_.RM_CreateInvoice as RM_Crea73_276_, order0_.C_Return_Reason_ID as C_Retur74_276_, order0_.RM_AddOrphanLine as RM_AddO75_276_, order0_.A_Asset_ID as A_Asset76_276_, order0_.Calculate_Promotions as Calcula77_276_, order0_.C_Costcenter_ID as C_Costc78_276_, order0_.Convertquotation as Convert79_276_, order0_.C_Reject_Reason_ID as C_Rejec80_276_, order0_.validuntil as validun81_276_, order0_.Quotation_ID as Quotati82_276_, order0_.SO_Res_Status as SO_Res_83_276_, order0_.Create_POLines as Create_84_276_, order0_.EM_Obdisc_Addpack as EM_Obdi85_276_, order0_.Iscashvat as Iscashv86_276_, order0_.EM_OBMFM_Selectfreight as EM_OBMF87_276_, order0_.EM_OBMFM_Delivery_Period_ID as EM_OBMF88_276_, order0_.RM_Pickfromreceipt as RM_Pick89_276_, order0_.Cancelandreplace as Cancela90_276_, order0_.EM_Advcrm_Newactivity as EM_Advc91_276_, order0_.EM_APRM_AddPayment as EM_APRM92_276_, order0_.EM_OBMFM_Delivery_Charges as EM_OBMF93_276_, order0_.EM_OBMFM_Freight_ID as EM_OBMF94_276_, order0_.EM_Obwpl_Generatepicking as EM_Obwp95_276_, order0_.EM_Advcrm_Opportunity_ID as EM_Advc96_276_, order0_.EM_OBMFM_Weight as EM_OBMF97_276_, order0_.EM_Obwpl_Isinpickinglist as EM_Obwp98_276_, order0_.EM_Rcinv_Contractdate as EM_Rcin99_276_, order0_.EM_Obwpl_Readypl as EM_Obw100_276_, order0_.EM_Rcinv_Initialdate as EM_Rci101_276_, order0_.EM_Rcinv_Enddate as EM_Rci102_276_, order0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgp103_276_, order0_.EM_OBMFM_Weight_Uom_ID as EM_OBM104_276_, order0_.EM_Rcinv_Frequency as EM_Rci105_276_, order0_.EM_OBMFM_Set_Weight as EM_OBM106_276_, order0_.EM_Rcinv_Renewautomatically as EM_Rci107_276_, order0_.EM_Aeatsii_Fecha_Operacion as EM_Aea108_276_, order0_.EM_Ml_Select_Product as EM_Ml_109_276_, order0_.EM_Rcinv_Renovationtimes as EM_Rci110_276_, order0_.Confirmcancelandreplace as Confir111_276_, order0_.EM_Aeatsii_Descripcion_Sii as EM_Aea112_276_, order0_.EM_Obpos_Applications_ID as EM_Obp113_276_, order0_.EM_Rcinv_Freqrenovationtime as EM_Rci114_276_, order0_.EM_Obpos_Sendemail as EM_Obp115_276_, order0_.EM_Rcinv_Ordercontract_ID as EM_Rci116_276_, order0_.EM_Obpos_Email_Status as EM_Obp117_276_, order0_.EM_Rcinv_Freqtime as EM_Rci118_276_, order0_.Cancelledorder_id as Cancel119_276_, order0_.EM_Obpos_App_Cashup_ID as EM_Obp120_276_, order0_.EM_Obpos_Createdabsolute as EM_Obp121_276_, order0_.Replacedorder_id as Replac122_276_, order0_.EM_OBPOS_NotInvoiceOnCashUp as EM_OBP123_276_, order0_.EM_Obpos_Rejected_Quotat_ID as EM_Obp124_276_, order0_.EM_Obpos_Isdeleted as EM_Obp125_276_, order0_.Iscancelled as Iscanc126_276_, order0_.EM_Obpos_Islayaway as EM_Obp127_276_, order0_.EM_Obpos_Prepaymentamt as EM_Obp128_276_, order0_.Replacementorder_ID as Replac129_276_, order0_.EM_Obpos_Prepaymentlimitamt as EM_Obp130_276_, order0_.EM_Obpos_Prepaymentlaylimitamt as EM_Obp131_276_, order0_.EM_Obpos_Rounding_Amount as EM_Obp132_276_, order0_.BPartner_ExtRef as BPartn133_276_, order0_.EM_Obpos_Sequencename as EM_Obp134_276_, order0_.EM_Prqc_Clauses_Selector as EM_Prq135_276_, order0_.EM_Obpos_Sequencenumber as EM_Obp136_276_, order0_.EM_Rcinv_Cancelcontract as EM_Rci137_276_, order0_.EM_Rcinv_Cancelleddate as EM_Rci138_276_, order0_.EM_Rcinv_Iscancelled as EM_Rci139_276_, order0_.EM_Psat_Activity_ID as EM_Psa140_276_, order0_.EM_OBSMAIL_EmailAddress as EM_OBS141_276_, order0_.EM_Prouti_Order_Stock as EM_Pro142_276_, order0_.EM_Prouti_Pregenerate_Minout as EM_Pro143_276_, order0_.EM_Prouti_Sotopo as EM_Pro144_276_, order0_.EM_Prouti_Generate_Pick_Inv as EM_Pro145_276_, order0_.EM_Pricm_Order_ID as EM_Pri146_276_, order0_.EM_Prouti_Order_ID as EM_Pro147_276_, order0_.EM_Prouti_Grandtotalinitial as EM_Pro148_276_, order0_.EM_Prouti_Dateclosed as EM_Pro149_276_, order0_.EM_Prouti_Totallinesinitial as EM_Pro150_276_, order0_.EM_Prouti_Changebpartner as EM_Pro151_276_, order0_.EM_Prouti_Recalculate_Price as EM_Pro152_276_, order0_.em_prqr_execute as em_prq153_276_, order0_.EM_Prouti_Pricecalculatetdate as EM_Pro154_276_, order0_.EM_Prqr_Execute_Purchase as EM_Prq155_276_, order0_.EM_Prouti_Reactiveorder as EM_Pro156_276_, order0_.EM_Prqr_Return_Select_Prod as EM_Prq157_276_, order0_.EM_Prouti_Totalizations as EM_Pro158_276_, order0_.em_prouti_Invoiced as em_pro159_276_, order0_.em_prouti_Received as em_pro160_276_, order0_.em_prouti_initial_received as em_pro161_276_, order0_.EM_Prouti_Status_Of_Review as EM_Pro162_276_, order0_.EM_Prouti_Validate_Order as EM_Pro163_276_, order0_.EM_Prouti_Start_Review as EM_Pro164_276_, order0_.EM_Ml_Select_Product_Byattrib as EM_Ml_165_276_, order0_.EM_Prres_Reservation_ID as EM_Prr166_276_, order0_.EM_Prres_Responsible_ID as EM_Prr167_276_, order0_.EM_Prres_Diners as EM_Prr168_276_, order0_.EM_Prres_Sended as EM_Prr169_276_, order0_.EM_Prres_Printed as EM_Prr170_276_, order0_.EM_Prouti_Initial_Bp_ID as EM_Pro171_276_, order0_.EM_Prouti_Addlines_Btn as EM_Pro172_276_, order0_.EM_Prtoma_Tomaticket_ID as EM_Prt173_276_, order0_.EM_Cactl_IsCopy as EM_Cac174_276_, order0_.EM_Prtoma_Jsonorder as EM_Prt175_276_, order0_.EM_Prres_Paid_On_Credit as EM_Prr176_276_, order0_.EM_Prtoma_Grossamount as EM_Prt177_276_, order0_.EM_Cactl_Internal_Notes_Group as EM_Cac178_276_, order0_.EM_Prouti_Changebpartner_Bgt as EM_Pro179_276_, order0_.EM_Prrgr_Locator_ID as EM_Prr180_276_, order0_.EM_Paytef_Transactionreference as EM_Pay181_276_, order0_.EM_Cactl_Indirect_Cost_ID as EM_Cac182_276_, order0_.EM_Cactl_Calculate_Cost as EM_Cac183_276_, order0_.EM_Cactl_Totalcost as EM_Cac184_276_, order0_.EM_Cactl_Forceselectedproject as EM_Cac185_276_, order0_.EM_Cactl_Verified_Return as EM_Cac186_276_, order0_.EM_Cactl_Duplicate_Budget as EM_Cac187_276_, order0_.EM_Prres_Orig_Order_ID as EM_Prr188_276_, order0_.EM_Prcpr_Is_Cloned as EM_Prc189_276_, order0_.EM_Prouti_Select_Soline as EM_Pro190_276_, order0_.EM_Prouti_Return_Quantity as EM_Pro191_276_, order0_.EM_Prqr_Executecredit as EM_Prq192_276_, order0_.Em_Prqr_Credit_Purchase_ID as Em_Prq193_276_ from C_Order order0_ where (upper((order0_.DocumentNo||$3||coalesce(to_char(order0_.DateOrdered), $4)||$5||coalesce(to_char(order0_.GrandTotal), $6))) like upper($1) escape $7) and (exists (select $8 from M_InOut materialmg1_ inner join C_Order order2_ on materialmg1_.C_Order_ID=order2_.C_Order_ID cross join C_DocType documentty3_ where materialmg1_.C_DocType_ID=documentty3_.C_DocType_ID and (materialmg1_.MovementType in ($9 , $10)) and materialmg1_.Islogistic=$11 and documentty3_.IsReturn=$12 and order2_.C_Order_ID=order0_.C_Order_ID and (materialmg1_.AD_Org_ID in ($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)) and (materialmg1_.AD_Client_ID in ($51 , $52)))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit $2 |
| 17592c9fe0 | select order0_.DocumentNo as col_0_0_, businesspa2_.Name as col_1_0_, order0_.DateOrdered as col_2_0_, organizati3_.Name as col_3_0_, adlisttrl1_.Name as col_4_0_ from C_Order order0_ cross join C_BPartner businesspa2_ cross join AD_Org organizati3_ cross join AD_Ref_List_Trl adlisttrl1_ cross join AD_Ref_List adlist4_ where order0_.C_BPartner_ID=businesspa2_.C_BPartner_ID and order0_.AD_Org_ID=organizati3_.AD_Org_ID and adlisttrl1_.AD_Ref_List_ID=adlist4_.AD_Ref_List_ID and order0_.EM_Prouti_Status_Of_Review<>$4 and adlist4_.Value=order0_.EM_Prouti_Status_Of_Review and adlist4_.AD_Reference_ID=$5 and adlisttrl1_.AD_Language=$1 and ($2 in (select prouti_ord6_.AD_User_ID from prouti_order_reviewers prouti_ord6_ where prouti_ord6_.C_Order_ID=order0_.C_Order_ID and (prouti_ord6_.Sequence in (select coalesce(min(prouti_ord7_.Sequence), $6) from prouti_order_reviewers prouti_ord7_ where prouti_ord7_.C_Order_ID=order0_.C_Order_ID and (prouti_ord7_.Result is null))))) limit $3 |
| e54b22db57 | CREATE INDEX prpass_pass_inst_hist_ord_ix ON prpass_pass_inst_hist (c_order_id) WHERE c_order_id IS NOT NULL |
| 1452c325d3 | SELECT 1 FROM ONLY "public"."m_attributesetinstance" x WHERE "m_attributesetinstance_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| d5c8e0e271 | INSERT INTO m_stock_proposed ( m_stock_proposed_id, ad_client_id, ad_org_id, isactive, created , createdby, updated, updatedby, ad_pinstance_id, priority, m_storage_detail_id, quantity, qtyorder, isfinal ) VALUES ( get_uuid(), v_ClientID, v_OrgID, $60, TO_DATE(NOW()), v_AD_User_ID, TO_DATE(NOW()), v_AD_User_ID, p_uuid, v_Count, Cur_Stock.M_STORAGE_DETAIL_ID, Cur_Stock.Qty, Cur_Stock.QtyOrder, $61 ) |
| e17f13e4ac | select order0_.C_Order_ID as C_Order_1_276_, order0_.AD_Client_ID as AD_Clien2_276_, order0_.AD_Org_ID as AD_Org_I3_276_, order0_.IsActive as IsActive4_276_, order0_.Created as Created5_276_, order0_.CreatedBy as CreatedB6_276_, order0_.Updated as Updated7_276_, order0_.UpdatedBy as UpdatedB8_276_, order0_.IsSOTrx as IsSOTrx9_276_, order0_.DocumentNo as Documen10_276_, order0_.DocStatus as DocStat11_276_, order0_.DocAction as DocActi12_276_, order0_.Processing as Process13_276_, order0_.Processed as Process14_276_, order0_.C_DocType_ID as C_DocTy15_276_, order0_.C_DocTypeTarget_ID as C_DocTy16_276_, order0_.Description as Descrip17_276_, order0_.IsDelivered as IsDeliv18_276_, order0_.IsInvoiced as IsInvoi19_276_, order0_.IsPrinted as IsPrint20_276_, order0_.IsSelected as IsSelec21_276_, order0_.SalesRep_ID as SalesRe22_276_, order0_.DateOrdered as DateOrd23_276_, order0_.DatePromised as DatePro24_276_, order0_.DatePrinted as DatePri25_276_, order0_.DateAcct as DateAcc26_276_, order0_.C_BPartner_ID as C_BPart27_276_, order0_.BillTo_ID as BillTo_28_276_, order0_.C_BPartner_Location_ID as C_BPart29_276_, order0_.POReference as PORefer30_276_, order0_.IsDiscountPrinted as IsDisco31_276_, order0_.C_Currency_ID as C_Curre32_276_, order0_.PaymentRule as Payment33_276_, order0_.C_PaymentTerm_ID as C_Payme34_276_, order0_.InvoiceRule as Invoice35_276_, order0_.DeliveryRule as Deliver36_276_, order0_.FreightCostRule as Freight37_276_, order0_.FreightAmt as Freight38_276_, order0_.DeliveryViaRule as Deliver39_276_, order0_.M_Shipper_ID as M_Shipp40_276_, order0_.C_Charge_ID as C_Charg41_276_, order0_.ChargeAmt as ChargeA42_276_, order0_.PriorityRule as Priorit43_276_, order0_.TotalLines as TotalLi44_276_, order0_.GrandTotal as GrandTo45_276_, order0_.M_Warehouse_ID as M_Wareh46_276_, order0_.M_PriceList_ID as M_Price47_276_, order0_.IsTaxIncluded as IsTaxIn48_276_, order0_.C_Campaign_ID as C_Campa49_276_, order0_.C_Project_ID as C_Proje50_276_, order0_.C_Activity_ID as C_Activ51_276_, order0_.Posted as Posted52_276_, order0_.AD_User_ID as AD_User53_276_, order0_.CopyFrom as CopyFro54_276_, order0_.DropShip_BPartner_ID as DropShi55_276_, order0_.DropShip_Location_ID as DropShi56_276_, order0_.DropShip_User_ID as DropShi57_276_, order0_.IsSelfService as IsSelfS58_276_, order0_.AD_OrgTrx_ID as AD_OrgT59_276_, order0_.User1_ID as User60_276_, order0_.User2_ID as User61_276_, order0_.Deliverynotes as Deliver62_276_, order0_.C_Incoterms_ID as C_Incot63_276_, order0_.Incotermsdescription as Incoter64_276_, order0_.Generatetemplate as Generat65_276_, order0_.Delivery_Location_ID as Deliver66_276_, order0_.CopyFromPO as CopyFro67_276_, order0_.FIN_Paymentmethod_ID as FIN_Pay68_276_, order0_.FIN_Payment_Priority_ID as FIN_Pay69_276_, order0_.RM_PickFromShipment as RM_Pick70_276_, order0_.RM_ReceiveMaterials as RM_Rece71_276_, order0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm72_276_, order0_.RM_CreateInvoice as RM_Crea73_276_, order0_.C_Return_Reason_ID as C_Retur74_276_, order0_.RM_AddOrphanLine as RM_AddO75_276_, order0_.A_Asset_ID as A_Asset76_276_, order0_.Calculate_Promotions as Calcula77_276_, order0_.C_Costcenter_ID as C_Costc78_276_, order0_.Convertquotation as Convert79_276_, order0_.C_Reject_Reason_ID as C_Rejec80_276_, order0_.validuntil as validun81_276_, order0_.Quotation_ID as Quotati82_276_, order0_.SO_Res_Status as SO_Res_83_276_, order0_.Create_POLines as Create_84_276_, order0_.EM_Obdisc_Addpack as EM_Obdi85_276_, order0_.Iscashvat as Iscashv86_276_, order0_.EM_OBMFM_Selectfreight as EM_OBMF87_276_, order0_.EM_OBMFM_Delivery_Period_ID as EM_OBMF88_276_, order0_.RM_Pickfromreceipt as RM_Pick89_276_, order0_.Cancelandreplace as Cancela90_276_, order0_.EM_Advcrm_Newactivity as EM_Advc91_276_, order0_.EM_APRM_AddPayment as EM_APRM92_276_, order0_.EM_OBMFM_Delivery_Charges as EM_OBMF93_276_, order0_.EM_OBMFM_Freight_ID as EM_OBMF94_276_, order0_.EM_Obwpl_Generatepicking as EM_Obwp95_276_, order0_.EM_Advcrm_Opportunity_ID as EM_Advc96_276_, order0_.EM_OBMFM_Weight as EM_OBMF97_276_, order0_.EM_Obwpl_Isinpickinglist as EM_Obwp98_276_, order0_.EM_Rcinv_Contractdate as EM_Rcin99_276_, order0_.EM_Obwpl_Readypl as EM_Obw100_276_, order0_.EM_Rcinv_Initialdate as EM_Rci101_276_, order0_.EM_Rcinv_Enddate as EM_Rci102_276_, order0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgp103_276_, order0_.EM_OBMFM_Weight_Uom_ID as EM_OBM104_276_, order0_.EM_Rcinv_Frequency as EM_Rci105_276_, order0_.EM_OBMFM_Set_Weight as EM_OBM106_276_, order0_.EM_Rcinv_Renewautomatically as EM_Rci107_276_, order0_.EM_Aeatsii_Fecha_Operacion as EM_Aea108_276_, order0_.EM_Ml_Select_Product as EM_Ml_109_276_, order0_.EM_Rcinv_Renovationtimes as EM_Rci110_276_, order0_.Confirmcancelandreplace as Confir111_276_, order0_.EM_Aeatsii_Descripcion_Sii as EM_Aea112_276_, order0_.EM_Obpos_Applications_ID as EM_Obp113_276_, order0_.EM_Rcinv_Freqrenovationtime as EM_Rci114_276_, order0_.EM_Obpos_Sendemail as EM_Obp115_276_, order0_.EM_Rcinv_Ordercontract_ID as EM_Rci116_276_, order0_.EM_Obpos_Email_Status as EM_Obp117_276_, order0_.EM_Rcinv_Freqtime as EM_Rci118_276_, order0_.Cancelledorder_id as Cancel119_276_, order0_.EM_Obpos_App_Cashup_ID as EM_Obp120_276_, order0_.EM_Obpos_Createdabsolute as EM_Obp121_276_, order0_.Replacedorder_id as Replac122_276_, order0_.EM_OBPOS_NotInvoiceOnCashUp as EM_OBP123_276_, order0_.EM_Obpos_Rejected_Quotat_ID as EM_Obp124_276_, order0_.EM_Obpos_Isdeleted as EM_Obp125_276_, order0_.Iscancelled as Iscanc126_276_, order0_.EM_Obpos_Islayaway as EM_Obp127_276_, order0_.EM_Obpos_Prepaymentamt as EM_Obp128_276_, order0_.Replacementorder_ID as Replac129_276_, order0_.EM_Obpos_Prepaymentlimitamt as EM_Obp130_276_, order0_.EM_Obpos_Prepaymentlaylimitamt as EM_Obp131_276_, order0_.EM_Obpos_Rounding_Amount as EM_Obp132_276_, order0_.BPartner_ExtRef as BPartn133_276_, order0_.EM_Obpos_Sequencename as EM_Obp134_276_, order0_.EM_Prqc_Clauses_Selector as EM_Prq135_276_, order0_.EM_Obpos_Sequencenumber as EM_Obp136_276_, order0_.EM_Rcinv_Cancelcontract as EM_Rci137_276_, order0_.EM_Rcinv_Cancelleddate as EM_Rci138_276_, order0_.EM_Rcinv_Iscancelled as EM_Rci139_276_, order0_.EM_Psat_Activity_ID as EM_Psa140_276_, order0_.EM_OBSMAIL_EmailAddress as EM_OBS141_276_, order0_.EM_Prouti_Order_Stock as EM_Pro142_276_, order0_.EM_Prouti_Pregenerate_Minout as EM_Pro143_276_, order0_.EM_Prouti_Sotopo as EM_Pro144_276_, order0_.EM_Prouti_Generate_Pick_Inv as EM_Pro145_276_, order0_.EM_Pricm_Order_ID as EM_Pri146_276_, order0_.EM_Prouti_Order_ID as EM_Pro147_276_, order0_.EM_Prouti_Grandtotalinitial as EM_Pro148_276_, order0_.EM_Prouti_Dateclosed as EM_Pro149_276_, order0_.EM_Prouti_Totallinesinitial as EM_Pro150_276_, order0_.EM_Prouti_Changebpartner as EM_Pro151_276_, order0_.EM_Prouti_Recalculate_Price as EM_Pro152_276_, order0_.em_prqr_execute as em_prq153_276_, order0_.EM_Prouti_Pricecalculatetdate as EM_Pro154_276_, order0_.EM_Prqr_Execute_Purchase as EM_Prq155_276_, order0_.EM_Prouti_Reactiveorder as EM_Pro156_276_, order0_.EM_Prqr_Return_Select_Prod as EM_Prq157_276_, order0_.EM_Prouti_Totalizations as EM_Pro158_276_, order0_.em_prouti_Invoiced as em_pro159_276_, order0_.em_prouti_Received as em_pro160_276_, order0_.em_prouti_initial_received as em_pro161_276_, order0_.EM_Prouti_Status_Of_Review as EM_Pro162_276_, order0_.EM_Prouti_Validate_Order as EM_Pro163_276_, order0_.EM_Prouti_Start_Review as EM_Pro164_276_, order0_.EM_Ml_Select_Product_Byattrib as EM_Ml_165_276_, order0_.EM_Prres_Reservation_ID as EM_Prr166_276_, order0_.EM_Prres_Responsible_ID as EM_Prr167_276_, order0_.EM_Prres_Diners as EM_Prr168_276_, order0_.EM_Prres_Sended as EM_Prr169_276_, order0_.EM_Prres_Printed as EM_Prr170_276_, order0_.EM_Prouti_Initial_Bp_ID as EM_Pro171_276_, order0_.EM_Prouti_Addlines_Btn as EM_Pro172_276_, order0_.EM_Prtoma_Tomaticket_ID as EM_Prt173_276_, order0_.EM_Cactl_IsCopy as EM_Cac174_276_, order0_.EM_Prtoma_Jsonorder as EM_Prt175_276_, order0_.EM_Prres_Paid_On_Credit as EM_Prr176_276_, order0_.EM_Prtoma_Grossamount as EM_Prt177_276_, order0_.EM_Cactl_Internal_Notes_Group as EM_Cac178_276_, order0_.EM_Prouti_Changebpartner_Bgt as EM_Pro179_276_, order0_.EM_Prrgr_Locator_ID as EM_Prr180_276_, order0_.EM_Paytef_Transactionreference as EM_Pay181_276_, order0_.EM_Cactl_Indirect_Cost_ID as EM_Cac182_276_, order0_.EM_Cactl_Calculate_Cost as EM_Cac183_276_, order0_.EM_Cactl_Totalcost as EM_Cac184_276_, order0_.EM_Cactl_Forceselectedproject as EM_Cac185_276_, order0_.EM_Cactl_Verified_Return as EM_Cac186_276_, order0_.EM_Cactl_Duplicate_Budget as EM_Cac187_276_, order0_.EM_Prres_Orig_Order_ID as EM_Prr188_276_, order0_.EM_Prcpr_Is_Cloned as EM_Prc189_276_, order0_.EM_Prouti_Select_Soline as EM_Pro190_276_, order0_.EM_Prouti_Return_Quantity as EM_Pro191_276_, order0_.EM_Prqr_Executecredit as EM_Prq192_276_, order0_.Em_Prqr_Credit_Purchase_ID as Em_Prq193_276_ from C_Order order0_ cross join C_DocType documentty1_ where order0_.C_DocTypeTarget_ID=documentty1_.C_DocType_ID and order0_.IsSOTrx=$42 and documentty1_.IsReturn=$43 and (order0_.AD_Org_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)) and (order0_.AD_Client_ID in ($39 , $40)) order by order0_.DocumentNo, order0_.C_Order_ID limit $41 |
| 6fe43f5091 | SELECT COUNT(*) AS ID FROM C_OrderLine WHERE Replacedorderline_id = $1 AND EXISTS (SELECT $2 FROM C_Order WHERE C_Order.C_Order_ID = C_OrderLine.C_Order_ID AND EXISTS (SELECT $3 FROM C_BPartner WHERE C_BPartner.C_BPartner_ID = C_Order.C_BPartner_ID AND EXISTS (SELECT $4 FROM C_BPartner WHERE C_BPartner.C_BPartner_ID = C_BPartner.C_BPartner_ID))) AND AD_ORG_ID IN ($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) AND AD_CLIENT_ID IN ($43) |
| 9918228dba | select prges_conf0_.Prges_Config_ID as Prges_Co1_830_1_, prges_conf0_.AD_Client_ID as AD_Clien2_830_1_, prges_conf0_.AD_Org_ID as AD_Org_I3_830_1_, prges_conf0_.Created as Created4_830_1_, prges_conf0_.Createdby as Createdb5_830_1_, prges_conf0_.Updated as Updated6_830_1_, prges_conf0_.Updatedby as Updatedb7_830_1_, prges_conf0_.Isactive as Isactive8_830_1_, prges_conf0_.Url as Url9_830_1_, prges_conf0_.Token as Token10_830_1_, prges_conf0_.C_Doctype_ID as C_Docty11_830_1_, prges_conf0_.Hold_Seconds as Hold_Se12_830_1_, prges_conf0_.Addon as Addon13_830_1_, prgesrecor1_.Prges_Config_ID as Prges_C16_831_3_, prgesrecor1_.Prges_Records_ID as Prges_Re1_831_3_, prgesrecor1_.Prges_Records_ID as Prges_Re1_831_0_, prgesrecor1_.AD_Client_ID as AD_Clien2_831_0_, prgesrecor1_.AD_Org_ID as AD_Org_I3_831_0_, prgesrecor1_.Created as Created4_831_0_, prgesrecor1_.Createdby as Createdb5_831_0_, prgesrecor1_.Updated as Updated6_831_0_, prgesrecor1_.Updatedby as Updatedb7_831_0_, prgesrecor1_.Isactive as Isactive8_831_0_, prgesrecor1_.Action as Action9_831_0_, prgesrecor1_.Url as Url10_831_0_, prgesrecor1_.Jsoninfo as Jsoninf11_831_0_, prgesrecor1_.Error as Error12_831_0_, prgesrecor1_.Process as Process13_831_0_, prgesrecor1_.Status as Status14_831_0_, prgesrecor1_.C_Invoice_ID as C_Invoi15_831_0_, prgesrecor1_.Prges_Config_ID as Prges_C16_831_0_ from prges_config prges_conf0_ left outer join prges_records prgesrecor1_ on prges_conf0_.Prges_Config_ID=prgesrecor1_.Prges_Config_ID where prges_conf0_.Prges_Config_ID=$1 |
| 18920cc811 | select created , unlimited from prpass_pass_inst ppi order by created asc |
| b99cde50b0 | select order0_.C_Order_ID as C_Order_1_276_, order0_.AD_Client_ID as AD_Clien2_276_, order0_.AD_Org_ID as AD_Org_I3_276_, order0_.IsActive as IsActive4_276_, order0_.Created as Created5_276_, order0_.CreatedBy as CreatedB6_276_, order0_.Updated as Updated7_276_, order0_.UpdatedBy as UpdatedB8_276_, order0_.IsSOTrx as IsSOTrx9_276_, order0_.DocumentNo as Documen10_276_, order0_.DocStatus as DocStat11_276_, order0_.DocAction as DocActi12_276_, order0_.Processing as Process13_276_, order0_.Processed as Process14_276_, order0_.C_DocType_ID as C_DocTy15_276_, order0_.C_DocTypeTarget_ID as C_DocTy16_276_, order0_.Description as Descrip17_276_, order0_.IsDelivered as IsDeliv18_276_, order0_.IsInvoiced as IsInvoi19_276_, order0_.IsPrinted as IsPrint20_276_, order0_.IsSelected as IsSelec21_276_, order0_.SalesRep_ID as SalesRe22_276_, order0_.DateOrdered as DateOrd23_276_, order0_.DatePromised as DatePro24_276_, order0_.DatePrinted as DatePri25_276_, order0_.DateAcct as DateAcc26_276_, order0_.C_BPartner_ID as C_BPart27_276_, order0_.BillTo_ID as BillTo_28_276_, order0_.C_BPartner_Location_ID as C_BPart29_276_, order0_.POReference as PORefer30_276_, order0_.IsDiscountPrinted as IsDisco31_276_, order0_.C_Currency_ID as C_Curre32_276_, order0_.PaymentRule as Payment33_276_, order0_.C_PaymentTerm_ID as C_Payme34_276_, order0_.InvoiceRule as Invoice35_276_, order0_.DeliveryRule as Deliver36_276_, order0_.FreightCostRule as Freight37_276_, order0_.FreightAmt as Freight38_276_, order0_.DeliveryViaRule as Deliver39_276_, order0_.M_Shipper_ID as M_Shipp40_276_, order0_.C_Charge_ID as C_Charg41_276_, order0_.ChargeAmt as ChargeA42_276_, order0_.PriorityRule as Priorit43_276_, order0_.TotalLines as TotalLi44_276_, order0_.GrandTotal as GrandTo45_276_, order0_.M_Warehouse_ID as M_Wareh46_276_, order0_.M_PriceList_ID as M_Price47_276_, order0_.IsTaxIncluded as IsTaxIn48_276_, order0_.C_Campaign_ID as C_Campa49_276_, order0_.C_Project_ID as C_Proje50_276_, order0_.C_Activity_ID as C_Activ51_276_, order0_.Posted as Posted52_276_, order0_.AD_User_ID as AD_User53_276_, order0_.CopyFrom as CopyFro54_276_, order0_.DropShip_BPartner_ID as DropShi55_276_, order0_.DropShip_Location_ID as DropShi56_276_, order0_.DropShip_User_ID as DropShi57_276_, order0_.IsSelfService as IsSelfS58_276_, order0_.AD_OrgTrx_ID as AD_OrgT59_276_, order0_.User1_ID as User60_276_, order0_.User2_ID as User61_276_, order0_.Deliverynotes as Deliver62_276_, order0_.C_Incoterms_ID as C_Incot63_276_, order0_.Incotermsdescription as Incoter64_276_, order0_.Generatetemplate as Generat65_276_, order0_.Delivery_Location_ID as Deliver66_276_, order0_.CopyFromPO as CopyFro67_276_, order0_.FIN_Paymentmethod_ID as FIN_Pay68_276_, order0_.FIN_Payment_Priority_ID as FIN_Pay69_276_, order0_.RM_PickFromShipment as RM_Pick70_276_, order0_.RM_ReceiveMaterials as RM_Rece71_276_, order0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm72_276_, order0_.RM_CreateInvoice as RM_Crea73_276_, order0_.C_Return_Reason_ID as C_Retur74_276_, order0_.RM_AddOrphanLine as RM_AddO75_276_, order0_.A_Asset_ID as A_Asset76_276_, order0_.Calculate_Promotions as Calcula77_276_, order0_.C_Costcenter_ID as C_Costc78_276_, order0_.Convertquotation as Convert79_276_, order0_.C_Reject_Reason_ID as C_Rejec80_276_, order0_.validuntil as validun81_276_, order0_.Quotation_ID as Quotati82_276_, order0_.SO_Res_Status as SO_Res_83_276_, order0_.Create_POLines as Create_84_276_, order0_.EM_Obdisc_Addpack as EM_Obdi85_276_, order0_.Iscashvat as Iscashv86_276_, order0_.EM_OBMFM_Selectfreight as EM_OBMF87_276_, order0_.EM_OBMFM_Delivery_Period_ID as EM_OBMF88_276_, order0_.RM_Pickfromreceipt as RM_Pick89_276_, order0_.Cancelandreplace as Cancela90_276_, order0_.EM_Advcrm_Newactivity as EM_Advc91_276_, order0_.EM_APRM_AddPayment as EM_APRM92_276_, order0_.EM_OBMFM_Delivery_Charges as EM_OBMF93_276_, order0_.EM_OBMFM_Freight_ID as EM_OBMF94_276_, order0_.EM_Obwpl_Generatepicking as EM_Obwp95_276_, order0_.EM_Advcrm_Opportunity_ID as EM_Advc96_276_, order0_.EM_OBMFM_Weight as EM_OBMF97_276_, order0_.EM_Obwpl_Isinpickinglist as EM_Obwp98_276_, order0_.EM_Rcinv_Contractdate as EM_Rcin99_276_, order0_.EM_Obwpl_Readypl as EM_Obw100_276_, order0_.EM_Rcinv_Initialdate as EM_Rci101_276_, order0_.EM_Rcinv_Enddate as EM_Rci102_276_, order0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgp103_276_, order0_.EM_OBMFM_Weight_Uom_ID as EM_OBM104_276_, order0_.EM_Rcinv_Frequency as EM_Rci105_276_, order0_.EM_OBMFM_Set_Weight as EM_OBM106_276_, order0_.EM_Rcinv_Renewautomatically as EM_Rci107_276_, order0_.EM_Aeatsii_Fecha_Operacion as EM_Aea108_276_, order0_.EM_Ml_Select_Product as EM_Ml_109_276_, order0_.EM_Rcinv_Renovationtimes as EM_Rci110_276_, order0_.Confirmcancelandreplace as Confir111_276_, order0_.EM_Aeatsii_Descripcion_Sii as EM_Aea112_276_, order0_.EM_Obpos_Applications_ID as EM_Obp113_276_, order0_.EM_Rcinv_Freqrenovationtime as EM_Rci114_276_, order0_.EM_Obpos_Sendemail as EM_Obp115_276_, order0_.EM_Rcinv_Ordercontract_ID as EM_Rci116_276_, order0_.EM_Obpos_Email_Status as EM_Obp117_276_, order0_.EM_Rcinv_Freqtime as EM_Rci118_276_, order0_.Cancelledorder_id as Cancel119_276_, order0_.EM_Obpos_App_Cashup_ID as EM_Obp120_276_, order0_.EM_Obpos_Createdabsolute as EM_Obp121_276_, order0_.Replacedorder_id as Replac122_276_, order0_.EM_OBPOS_NotInvoiceOnCashUp as EM_OBP123_276_, order0_.EM_Obpos_Rejected_Quotat_ID as EM_Obp124_276_, order0_.EM_Obpos_Isdeleted as EM_Obp125_276_, order0_.Iscancelled as Iscanc126_276_, order0_.EM_Obpos_Islayaway as EM_Obp127_276_, order0_.EM_Obpos_Prepaymentamt as EM_Obp128_276_, order0_.Replacementorder_ID as Replac129_276_, order0_.EM_Obpos_Prepaymentlimitamt as EM_Obp130_276_, order0_.EM_Obpos_Prepaymentlaylimitamt as EM_Obp131_276_, order0_.EM_Obpos_Rounding_Amount as EM_Obp132_276_, order0_.BPartner_ExtRef as BPartn133_276_, order0_.EM_Obpos_Sequencename as EM_Obp134_276_, order0_.EM_Prqc_Clauses_Selector as EM_Prq135_276_, order0_.EM_Obpos_Sequencenumber as EM_Obp136_276_, order0_.EM_Rcinv_Cancelcontract as EM_Rci137_276_, order0_.EM_Rcinv_Cancelleddate as EM_Rci138_276_, order0_.EM_Rcinv_Iscancelled as EM_Rci139_276_, order0_.EM_Psat_Activity_ID as EM_Psa140_276_, order0_.EM_OBSMAIL_EmailAddress as EM_OBS141_276_, order0_.EM_Prouti_Order_Stock as EM_Pro142_276_, order0_.EM_Prouti_Pregenerate_Minout as EM_Pro143_276_, order0_.EM_Prouti_Sotopo as EM_Pro144_276_, order0_.EM_Prouti_Generate_Pick_Inv as EM_Pro145_276_, order0_.EM_Pricm_Order_ID as EM_Pri146_276_, order0_.EM_Prouti_Order_ID as EM_Pro147_276_, order0_.EM_Prouti_Grandtotalinitial as EM_Pro148_276_, order0_.EM_Prouti_Dateclosed as EM_Pro149_276_, order0_.EM_Prouti_Totallinesinitial as EM_Pro150_276_, order0_.EM_Prouti_Changebpartner as EM_Pro151_276_, order0_.EM_Prouti_Recalculate_Price as EM_Pro152_276_, order0_.em_prqr_execute as em_prq153_276_, order0_.EM_Prouti_Pricecalculatetdate as EM_Pro154_276_, order0_.EM_Prqr_Execute_Purchase as EM_Prq155_276_, order0_.EM_Prouti_Reactiveorder as EM_Pro156_276_, order0_.EM_Prqr_Return_Select_Prod as EM_Prq157_276_, order0_.EM_Prouti_Totalizations as EM_Pro158_276_, order0_.em_prouti_Invoiced as em_pro159_276_, order0_.em_prouti_Received as em_pro160_276_, order0_.em_prouti_initial_received as em_pro161_276_, order0_.EM_Prouti_Status_Of_Review as EM_Pro162_276_, order0_.EM_Prouti_Validate_Order as EM_Pro163_276_, order0_.EM_Prouti_Start_Review as EM_Pro164_276_, order0_.EM_Ml_Select_Product_Byattrib as EM_Ml_165_276_, order0_.EM_Prres_Reservation_ID as EM_Prr166_276_, order0_.EM_Prres_Responsible_ID as EM_Prr167_276_, order0_.EM_Prres_Diners as EM_Prr168_276_, order0_.EM_Prres_Sended as EM_Prr169_276_, order0_.EM_Prres_Printed as EM_Prr170_276_, order0_.EM_Prouti_Initial_Bp_ID as EM_Pro171_276_, order0_.EM_Prouti_Addlines_Btn as EM_Pro172_276_, order0_.EM_Prtoma_Tomaticket_ID as EM_Prt173_276_, order0_.EM_Cactl_IsCopy as EM_Cac174_276_, order0_.EM_Prtoma_Jsonorder as EM_Prt175_276_, order0_.EM_Prres_Paid_On_Credit as EM_Prr176_276_, order0_.EM_Prtoma_Grossamount as EM_Prt177_276_, order0_.EM_Cactl_Internal_Notes_Group as EM_Cac178_276_, order0_.EM_Prouti_Changebpartner_Bgt as EM_Pro179_276_, order0_.EM_Prrgr_Locator_ID as EM_Prr180_276_, order0_.EM_Paytef_Transactionreference as EM_Pay181_276_, order0_.EM_Cactl_Indirect_Cost_ID as EM_Cac182_276_, order0_.EM_Cactl_Calculate_Cost as EM_Cac183_276_, order0_.EM_Cactl_Totalcost as EM_Cac184_276_, order0_.EM_Cactl_Forceselectedproject as EM_Cac185_276_, order0_.EM_Cactl_Verified_Return as EM_Cac186_276_, order0_.EM_Cactl_Duplicate_Budget as EM_Cac187_276_, order0_.EM_Prres_Orig_Order_ID as EM_Prr188_276_, order0_.EM_Prcpr_Is_Cloned as EM_Prc189_276_, order0_.EM_Prouti_Select_Soline as EM_Pro190_276_, order0_.EM_Prouti_Return_Quantity as EM_Pro191_276_, order0_.EM_Prqr_Executecredit as EM_Prq192_276_, order0_.Em_Prqr_Credit_Purchase_ID as Em_Prq193_276_ from C_Order order0_ inner join M_Warehouse warehouse1_ on order0_.M_Warehouse_ID=warehouse1_.M_Warehouse_ID cross join C_DocType documentty2_ where order0_.C_DocTypeTarget_ID=documentty2_.C_DocType_ID and order0_.IsSOTrx=$43 and documentty2_.IsReturn=$44 and (order0_.Updated>$1 or order0_.Processed=$45) and (order0_.AD_Org_ID in ($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)) and (order0_.AD_Client_ID in ($40 , $41)) order by warehouse1_.Name desc, order0_.C_Order_ID desc limit $42 |
| d545a87b3d | update C_Invoice set Updated=$1, LastCalculatedOnDate=$2 where C_Invoice_ID=$3 |
| 781daf8db9 | SELECT $2 FROM ONLY "public"."fact_acct" x WHERE $1::pg_catalog.text OPERATOR(pg_catalog.=) "c_uom_id"::pg_catalog.text FOR KEY SHARE OF x |
| ff35139986 | SELECT * FROM C_Order_Post($1) |
| ab6445a3b6 | select this_.AD_TreeNode_ID as AD_TreeN1_125_0_, this_.AD_Tree_ID as AD_Tree_2_125_0_, this_.Node_ID as Node_ID3_125_0_, this_.AD_Client_ID as AD_Clien4_125_0_, this_.AD_Org_ID as AD_Org_I5_125_0_, this_.IsActive as IsActive6_125_0_, this_.Created as Created7_125_0_, this_.CreatedBy as CreatedB8_125_0_, this_.Updated as Updated9_125_0_, this_.UpdatedBy as Updated10_125_0_, this_.Parent_ID as Parent_11_125_0_, this_.SeqNo as SeqNo12_125_0_ from AD_TreeNode this_ where this_.Node_ID=$1 and this_.Parent_ID<>$2 and this_.IsActive=$3 |
| 66933eedde | select f.id, f.hour, CASE WHEN f.reservation_type = $1 AND f.multiplier is not null THEN f.available * f.multiplier ELSE f.available END as available, CASE WHEN f.reservation_type = $2 AND f.multiplier is not null THEN f.reserved * f.multiplier ELSE f.reserved END as reserved, f.slot_type FROM ( select ptd.prpass_timeslots_detail_id as id, to_char(ptd.hour, $3) as hour, coalesce( (select qtyavailable from prpass_timeslots_exceptions pte where pte.prpass_timeslots_id = ptd.prpass_timeslots_id and (ptd.hour is null OR (to_char(pte.hour, $4) = to_char(ptd.hour, $5))) and pte.date = $6::date), CASE WHEN (EXTRACT($7 FROM ($8::timestamp - CURRENT_DATE)) / $9 >= pt.agency_reservation_time) OR (ptd.qtyavailable_agency > $10 AND pt.agency_reservation_time is null) THEN CASE WHEN $11 THEN COALESCE(ptd.qtyavailable_agency, COALESCE(ptd.qtyavailable_online, qtyavailable)) WHEN $12 AND ptd.qtyavailable_online = $13 THEN ptd.qtyavailable_online ELSE (COALESCE(ptd.qtyavailable_online, qtyavailable)) - ptd.qtyavailable_agency END ELSE CASE WHEN pt.slot_type = $14 AND $15 THEN COALESCE(ptd.qtyavailable_online, ptd.qtyavailable) ELSE ptd.qtyavailable END END) as available, coalesce( (select sum( CASE WHEN pt.reservation_type = $16 AND f.cart is not null AND pt.multiplier is not null THEN floor((f.qtyreservation + pt.multiplier - $17) / pt.multiplier) ELSE f.qtyreservation END) from( select CASE WHEN max(ptr.c_orderline_id) is not null THEN count(ppi.prpass_pass_inst_id) ELSE max(ptr.qtyreservation) END as qtyreservation, cart from prpass_timeslots_res ptr left join c_orderline col on col.c_orderline_id = ptr.c_orderline_id left join c_order co on co.c_order_id = col.c_order_id left join prpass_pass_inst ppi on ppi.c_orderline_id = col.c_orderline_id where ptr.prpass_timeslots_detail_id = ptd.prpass_timeslots_detail_id and ptr.date = $18::date and (pt.slot_type <> $19 or (pt.slot_type = $20 and CASE WHEN $21 THEN co.em_obpos_applications_id is null OR ptr.c_orderline_id is null ELSE co.em_obpos_applications_id is not null OR ptr.c_orderline_id is null END)) and (CASE WHEN (EXTRACT($22 FROM (ptr.date - CURRENT_DATE)) / $23 >= pt.agency_reservation_time) OR (ptd.qtyavailable_agency > $24 AND pt.agency_reservation_time is null) THEN CASE WHEN $25 THEN ptr.agency = $26 ELSE ptr.agency = $27 END ELSE $28 END) and (ppi.status <>$29 or ppi.status is null) and cart is not null group by cart ) as f), $30) as reserved, pt.multiplier, pt.reservation_type, pt.slot_type from prpass_timeslots_detail ptd join prpass_timeslots pt on pt.prpass_timeslots_id = ptd.prpass_timeslots_id where ptd.prpass_timeslots_id = $31 order by 2 asc) AS f |
| 1ca54a7d1e | SELECT * FROM AD_SEQUENCE_DOC($1,$2,$3) |
| d3471812de | select invoice0_.C_Invoice_ID as C_Invoic1_260_, invoice0_.AD_Client_ID as AD_Clien2_260_, invoice0_.AD_Org_ID as AD_Org_I3_260_, invoice0_.IsActive as IsActive4_260_, invoice0_.Created as Created5_260_, invoice0_.CreatedBy as CreatedB6_260_, invoice0_.Updated as Updated7_260_, invoice0_.UpdatedBy as UpdatedB8_260_, invoice0_.IsSOTrx as IsSOTrx9_260_, invoice0_.DocumentNo as Documen10_260_, invoice0_.DocStatus as DocStat11_260_, invoice0_.DocAction as DocActi12_260_, invoice0_.Processing as Process13_260_, invoice0_.Processed as Process14_260_, invoice0_.Posted as Posted15_260_, invoice0_.C_DocType_ID as C_DocTy16_260_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_260_, invoice0_.C_Order_ID as C_Order18_260_, invoice0_.Description as Descrip19_260_, invoice0_.IsPrinted as IsPrint20_260_, invoice0_.SalesRep_ID as SalesRe21_260_, invoice0_.DateInvoiced as DateInv22_260_, invoice0_.DatePrinted as DatePri23_260_, invoice0_.DateAcct as DateAcc24_260_, invoice0_.C_BPartner_ID as C_BPart25_260_, invoice0_.C_BPartner_Location_ID as C_BPart26_260_, invoice0_.POReference as PORefer27_260_, invoice0_.IsDiscountPrinted as IsDisco28_260_, invoice0_.DateOrdered as DateOrd29_260_, invoice0_.C_Currency_ID as C_Curre30_260_, invoice0_.C_PaymentTerm_ID as C_Payme31_260_, invoice0_.C_Charge_ID as C_Charg32_260_, invoice0_.ChargeAmt as ChargeA33_260_, invoice0_.TotalLines as TotalLi34_260_, invoice0_.GrandTotal as GrandTo35_260_, invoice0_.M_PriceList_ID as M_Price36_260_, invoice0_.IsTaxIncluded as IsTaxIn37_260_, invoice0_.C_Campaign_ID as C_Campa38_260_, invoice0_.C_Project_ID as C_Proje39_260_, invoice0_.C_Activity_ID as C_Activ40_260_, invoice0_.CreateFrom as CreateF41_260_, invoice0_.GenerateTo as Generat42_260_, invoice0_.AD_User_ID as AD_User43_260_, invoice0_.CopyFrom as CopyFro44_260_, invoice0_.IsSelfService as IsSelfS45_260_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_260_, invoice0_.User1_ID as User47_260_, invoice0_.User2_ID as User48_260_, invoice0_.Withholdingamount as Withhol49_260_, invoice0_.Taxdate as Taxdate50_260_, invoice0_.C_Withholding_ID as C_Withh51_260_, invoice0_.Ispaid as Ispaid52_260_, invoice0_.EM_Einv_Generated as EM_Einv53_260_, invoice0_.Totalpaid as Totalpa54_260_, invoice0_.EM_Einv_Sent as EM_Einv55_260_, invoice0_.OutstandingAmt as Outstan56_260_, invoice0_.DaysTillDue as DaysTil57_260_, invoice0_.DueAmt as DueAmt58_260_, invoice0_.LastCalculatedOnDate as LastCal59_260_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_260_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_260_, invoice0_.Finalsettlement as Finalse62_260_, invoice0_.Daysoutstanding as Daysout63_260_, invoice0_.Percentageoverdue as Percent64_260_, invoice0_.C_Costcenter_ID as C_Costc65_260_, invoice0_.Calculate_Promotions as Calcula66_260_, invoice0_.A_Asset_ID as A_Asset67_260_, invoice0_.EM_APRM_Addpayment as EM_APRM68_260_, invoice0_.Iscashvat as Iscashv69_260_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_260_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_260_, invoice0_.Prepaymentamt as Prepaym72_260_, invoice0_.Createfromorders as Createf73_260_, invoice0_.Createfrominouts as Createf74_260_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_260_, invoice0_.Paidamtatinvoicing as Paidamt76_260_, invoice0_.EM_Obpos_Rounding_Amount as EM_Obpo77_260_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_260_, invoice0_.BPartner_ExtRef as BPartne79_260_, invoice0_.EM_Aeatsii_Send as EM_Aeat80_260_, invoice0_.EM_Obpos_Sequencename as EM_Obpo81_260_, invoice0_.EM_Aeatsii_Issent as EM_Aeat82_260_, invoice0_.EM_Obpos_Sequencenumber as EM_Obpo83_260_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat84_260_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat85_260_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat86_260_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou87_260_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat88_260_, invoice0_.EM_Ml_Select_Product as EM_Ml_S89_260_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou90_260_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat91_260_, invoice0_.EM_Prouti_Totalizations as EM_Prou92_260_, invoice0_.EM_Aeatsii_Dua as EM_Aeat93_260_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aeat94_260_, invoice0_.EM_Aeatsii_Estado as EM_Aeat95_260_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aeat96_260_, invoice0_.EM_Aeatsii_Modif as EM_Aeat97_260_, invoice0_.EM_Aeatsii_Modified as EM_Aeat98_260_, invoice0_.EM_Aeatsii_Description_ID as EM_Aeat99_260_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea100_260_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea101_260_, invoice0_.EM_Aeatsii_Dup as EM_Aea102_260_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea103_260_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea104_260_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea105_260_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea106_260_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea107_260_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea108_260_, invoice0_.EM_Aeatsii_Periodo as EM_Aea109_260_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea110_260_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea111_260_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea112_260_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea113_260_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea114_260_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea115_260_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri116_260_, invoice0_.EM_Priuti_Generated as EM_Pri117_260_, invoice0_.EM_Priuti_Date_Complete as EM_Pri118_260_, invoice0_.EM_Prges_Expediente_ID as EM_Prg119_260_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri120_260_, invoice0_.EM_Prges_Annotation_ID as EM_Prg121_260_, invoice0_.EM_Prges_Record_Number as EM_Prg122_260_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri123_260_, invoice0_.EM_Prges_Grantotal as EM_Prg124_260_, invoice0_.EM_Priuti_Validate as EM_Pri125_260_, invoice0_.EM_Priuti_Start_Review as EM_Pri126_260_, invoice0_.EM_Prges_Poreference as EM_Prg127_260_, invoice0_.em_cactl_createfromship as em_cac128_260_ from C_Invoice invoice0_ where invoice0_.IsSOTrx=$43 and invoice0_.DocStatus<>$44 and (invoice0_.Updated>$1 or invoice0_.Processed=$45) and (invoice0_.AD_Org_ID in ($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)) and (invoice0_.AD_Client_ID in ($40 , $41)) order by invoice0_.DateInvoiced desc, invoice0_.C_Invoice_ID desc limit $42 |
| 7247cdc8b5 | select c_import_e0_.C_IMPORT_ENTRY_ID as C_IMPORT1_257_, c_import_e0_.AD_Client_ID as AD_Clien2_257_, c_import_e0_.AD_Org_ID as AD_Org_I3_257_, c_import_e0_.Isactive as Isactive4_257_, c_import_e0_.Created as Created5_257_, c_import_e0_.Createdby as Createdb6_257_, c_import_e0_.Updated as Updated7_257_, c_import_e0_.Updatedby as Updatedb8_257_, c_import_e0_.Imported as Imported9_257_, c_import_e0_.Jsoninfo as Jsoninf10_257_, c_import_e0_.ImportStatus as ImportS11_257_, c_import_e0_.Typeofdata as Typeofd12_257_, c_import_e0_.Errorinfo as Errorin13_257_, c_import_e0_.AD_Role_ID as AD_Role14_257_, c_import_e0_.Createdtimestamp as Created15_257_, c_import_e0_.EM_Obpos_Applications_ID as EM_Obpo16_257_, c_import_e0_.Responseinfo as Respons17_257_ from C_IMPORT_ENTRY c_import_e0_ where c_import_e0_.Typeofdata=$1 and c_import_e0_.ImportStatus=$3 order by c_import_e0_.Created, c_import_e0_.Createdtimestamp limit $2 |
| 214f622e78 | select prpass_pas0_.Prpass_Pass_Inst_ID as Prpass_P1_878_, prpass_pas0_.AD_Client_ID as AD_Clien2_878_, prpass_pas0_.AD_Org_ID as AD_Org_I3_878_, prpass_pas0_.Isactive as Isactive4_878_, prpass_pas0_.Created as Created5_878_, prpass_pas0_.Createdby as Createdb6_878_, prpass_pas0_.Updated as Updated7_878_, prpass_pas0_.Updatedby as Updatedb8_878_, prpass_pas0_.Value as Value9_878_, prpass_pas0_.Status as Status10_878_, prpass_pas0_.C_Orderline_ID as C_Order11_878_, prpass_pas0_.C_Order_ID as C_Order12_878_, prpass_pas0_.Dateordered as Dateord13_878_, prpass_pas0_.C_Bpartner_ID as C_Bpart14_878_, prpass_pas0_.M_Product_ID as M_Produ15_878_, prpass_pas0_.Obpos_Applications_ID as Obpos_A16_878_, prpass_pas0_.Cancel as Cancel17_878_, prpass_pas0_.AD_Creation_Org_ID as AD_Crea18_878_, prpass_pas0_.Expirationdate as Expirat19_878_, prpass_pas0_.EM_Cactl_Gl_Journal_ID as EM_Cact20_878_, prpass_pas0_.Prpass_Timeslots_Detail_ID as Prpass_21_878_, prpass_pas0_.Prpass_Timeslots_Res_ID as Prpass_22_878_, prpass_pas0_.Time_First_Pick as Time_Fi23_878_, prpass_pas0_.Validate_Manual as Validat24_878_, prpass_pas0_.Unlimited as Unlimit25_878_ from prpass_pass_inst prpass_pas0_ where (upper(prpass_pas0_.Value) like upper($1) escape $43) and (prpass_pas0_.AD_Org_ID in ($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)) and (prpass_pas0_.AD_Client_ID in ($40 , $41)) order by prpass_pas0_.Value, prpass_pas0_.Prpass_Pass_Inst_ID limit $42 |
| 30f874364a | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 6759033aa8 | select materialmg0_.M_InOut_ID as M_InOut_1_463_, materialmg0_.AD_Client_ID as AD_Clien2_463_, materialmg0_.AD_Org_ID as AD_Org_I3_463_, materialmg0_.IsActive as IsActive4_463_, materialmg0_.Created as Created5_463_, materialmg0_.CreatedBy as CreatedB6_463_, materialmg0_.Updated as Updated7_463_, materialmg0_.UpdatedBy as UpdatedB8_463_, materialmg0_.IsSOTrx as IsSOTrx9_463_, materialmg0_.DocumentNo as Documen10_463_, materialmg0_.DocAction as DocActi11_463_, materialmg0_.DocStatus as DocStat12_463_, materialmg0_.Posted as Posted13_463_, materialmg0_.Processing as Process14_463_, materialmg0_.Processed as Process15_463_, materialmg0_.C_DocType_ID as C_DocTy16_463_, materialmg0_.Description as Descrip17_463_, materialmg0_.C_Order_ID as C_Order18_463_, materialmg0_.DateOrdered as DateOrd19_463_, materialmg0_.IsPrinted as IsPrint20_463_, materialmg0_.MovementType as Movemen21_463_, materialmg0_.MovementDate as Movemen22_463_, materialmg0_.DateAcct as DateAcc23_463_, materialmg0_.C_BPartner_ID as C_BPart24_463_, materialmg0_.C_BPartner_Location_ID as C_BPart25_463_, materialmg0_.M_Warehouse_ID as M_Wareh26_463_, materialmg0_.POReference as PORefer27_463_, materialmg0_.DeliveryRule as Deliver28_463_, materialmg0_.FreightCostRule as Freight29_463_, materialmg0_.FreightAmt as Freight30_463_, materialmg0_.DeliveryViaRule as Deliver31_463_, materialmg0_.M_Shipper_ID as M_Shipp32_463_, materialmg0_.C_Charge_ID as C_Charg33_463_, materialmg0_.ChargeAmt as ChargeA34_463_, materialmg0_.PriorityRule as Priorit35_463_, materialmg0_.DatePrinted as DatePri36_463_, materialmg0_.C_Invoice_ID as C_Invoi37_463_, materialmg0_.CreateFrom as CreateF38_463_, materialmg0_.GenerateTo as Generat39_463_, materialmg0_.AD_User_ID as AD_User40_463_, materialmg0_.SalesRep_ID as SalesRe41_463_, materialmg0_.NoPackages as NoPacka42_463_, materialmg0_.PickDate as PickDat43_463_, materialmg0_.ShipDate as ShipDat44_463_, materialmg0_.TrackingNo as Trackin45_463_, materialmg0_.AD_OrgTrx_ID as AD_OrgT46_463_, materialmg0_.C_Project_ID as C_Proje47_463_, materialmg0_.C_Campaign_ID as C_Campa48_463_, materialmg0_.C_Activity_ID as C_Activ49_463_, materialmg0_.User1_ID as User50_463_, materialmg0_.User2_ID as User51_463_, materialmg0_.UpdateLines as UpdateL52_463_, materialmg0_.Islogistic as Islogis53_463_, materialmg0_.Calculate_Freight as Calcula54_463_, materialmg0_.Delivery_Location_ID as Deliver55_463_, materialmg0_.M_FreightCategory_ID as M_Freig56_463_, materialmg0_.Freight_Currency_ID as Freight57_463_, materialmg0_.RM_Receipt_PickEdit as RM_Rece58_463_, materialmg0_.RM_Shipment_Pickedit as RM_Ship59_463_, materialmg0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm60_463_, materialmg0_.M_Condition_Goods_ID as M_Condi61_463_, materialmg0_.A_Asset_ID as A_Asset62_463_, materialmg0_.C_Costcenter_ID as C_Costc63_463_, materialmg0_.Process_Goods_Java as Process64_463_, materialmg0_.Isnettingshipment as Isnetti65_463_, materialmg0_.Iscompletelyinvoiced as Iscompl66_463_, materialmg0_.EM_OBMFM_Freight_ID as EM_OBMF67_463_, materialmg0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc68_463_, materialmg0_.EM_OBMFM_Delivery_Charges as EM_OBMF69_463_, materialmg0_.Invoicefromshipment as Invoice70_463_, materialmg0_.Bpartner_Extref as Bpartne71_463_, materialmg0_.EM_Prouti_Changebpartner as EM_Prou72_463_, materialmg0_.EM_Prouti_Totalqtyreceived as EM_Prou73_463_, materialmg0_.EM_OBMFM_Deliverynotes as EM_OBMF74_463_, materialmg0_.EM_Prres_Description as EM_Prre75_463_, materialmg0_.EM_Prres_Jsoninfo as EM_Prre76_463_, materialmg0_.EM_Prrgr_Description as EM_Prrg77_463_, materialmg0_.EM_Prrgr_Jsoninfo as EM_Prrg78_463_, materialmg0_.EM_Prouti_Initial_Bp_ID as EM_Prou79_463_, materialmg0_.EM_Prouti_Move_Stock as EM_Prou80_463_, materialmg0_.EM_Prouti_Stock_Moved as EM_Prou81_463_, materialmg0_.EM_Prqr_Execute as EM_Prqr82_463_, materialmg0_.em_prlab_desc as em_prla83_463_ from M_InOut materialmg0_ cross join C_DocType documentty1_ where materialmg0_.C_DocType_ID=documentty1_.C_DocType_ID and (materialmg0_.MovementType in ($43 , $44)) and materialmg0_.Islogistic=$45 and documentty1_.IsReturn=$46 and (materialmg0_.Updated>$1 or materialmg0_.Processed=$47) and (materialmg0_.AD_Org_ID in ($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)) and (materialmg0_.AD_Client_ID in ($40 , $41)) order by materialmg0_.DocumentNo, materialmg0_.M_InOut_ID limit $42 |
| 30d8811b23 | select fin_paymen0_.Fin_Payment_ID as Fin_Paym1_396_, fin_paymen0_.AD_Client_ID as AD_Clien2_396_, fin_paymen0_.AD_Org_ID as AD_Org_I3_396_, fin_paymen0_.Created as Created4_396_, fin_paymen0_.Createdby as Createdb5_396_, fin_paymen0_.Updated as Updated6_396_, fin_paymen0_.Updatedby as Updatedb7_396_, fin_paymen0_.Isactive as Isactive8_396_, fin_paymen0_.Isreceipt as Isreceip9_396_, fin_paymen0_.C_Bpartner_ID as C_Bpart10_396_, fin_paymen0_.Paymentdate as Payment11_396_, fin_paymen0_.C_Currency_ID as C_Curre12_396_, fin_paymen0_.Amount as Amount13_396_, fin_paymen0_.Writeoffamt as Writeof14_396_, fin_paymen0_.Fin_Paymentmethod_ID as Fin_Pay15_396_, fin_paymen0_.DocumentNo as Documen16_396_, fin_paymen0_.Referenceno as Referen17_396_, fin_paymen0_.Status as Status18_396_, fin_paymen0_.Processed as Process19_396_, fin_paymen0_.Processing as Process20_396_, fin_paymen0_.Posted as Posted21_396_, fin_paymen0_.Description as Descrip22_396_, fin_paymen0_.Fin_Financial_Account_ID as Fin_Fin23_396_, fin_paymen0_.C_DocType_ID as C_DocTy24_396_, fin_paymen0_.C_Project_ID as C_Proje25_396_, fin_paymen0_.C_Campaign_ID as C_Campa26_396_, fin_paymen0_.C_Activity_ID as C_Activ27_396_, fin_paymen0_.User1_ID as User28_396_, fin_paymen0_.User2_ID as User29_396_, fin_paymen0_.Generated_Credit as Generat30_396_, fin_paymen0_.Used_Credit as Used_Cr31_396_, fin_paymen0_.CreatedByAlgorithm as Created32_396_, fin_paymen0_.Finacc_Txn_Convert_Rate as Finacc_33_396_, fin_paymen0_.Finacc_Txn_Amount as Finacc_34_396_, fin_paymen0_.EM_APRM_Process_Payment as EM_APRM35_396_, fin_paymen0_.FIN_Rev_Payment_ID as FIN_Rev36_396_, fin_paymen0_.EM_APRM_Reconcile_Payment as EM_APRM37_396_, fin_paymen0_.EM_Aprm_Add_Scheduledpayments as EM_Aprm38_396_, fin_paymen0_.EM_Aprm_Executepayment as EM_Aprm39_396_, fin_paymen0_.EM_APRM_ReversePayment as EM_APRM40_396_, fin_paymen0_.C_Costcenter_ID as C_Costc41_396_, fin_paymen0_.EM_Aeatsii_Send as EM_Aeat42_396_, fin_paymen0_.EM_Obpos_Paymentdata as EM_Obpo43_396_, fin_paymen0_.EM_Aeatsii_Issent as EM_Aeat44_396_, fin_paymen0_.EM_OBPOS_App_Cashup_ID as EM_OBPO45_396_, fin_paymen0_.EM_Aeatsii_Estado as EM_Aeat46_396_, fin_paymen0_.EM_OBPOS_Applications_ID as EM_OBPO47_396_, fin_paymen0_.EM_Obpos_Rounded_Payment_ID as EM_Obpo48_396_, fin_paymen0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm49_396_ from FIN_Payment fin_paymen0_ where fin_paymen0_.Isreceipt=$43 and (fin_paymen0_.Updated>$1 or fin_paymen0_.Processed=$44) and (fin_paymen0_.AD_Org_ID in ($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)) and (fin_paymen0_.AD_Client_ID in ($40 , $41)) order by fin_paymen0_.Paymentdate desc, fin_paymen0_.Fin_Payment_ID desc limit $42 |
| 75890e23a4 | SELECT * FROM M_GET_STOCK_PARAM($1, $2, TO_NUMBER($3), $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, TO_NUMBER($17), $18, $19, $20, $21, $22, $23) |
| 8be0d7c1e7 | UPDATE C_BPARTNER SET SO_CREDITUSED = COALESCE(SO_CREDITUSED,$24) + v_ConvertedAmount, UPDATED = TO_DATE(NOW()) WHERE C_BPARTNER_ID = v_BPartner_ID |
| 43a80059e4 | SELECT * FROM C_Invoice_Create($8, v_Record_ID) |
| 22615c404b | select invoice0_.C_Invoice_ID as C_Invoic1_260_, invoice0_.AD_Client_ID as AD_Clien2_260_, invoice0_.AD_Org_ID as AD_Org_I3_260_, invoice0_.IsActive as IsActive4_260_, invoice0_.Created as Created5_260_, invoice0_.CreatedBy as CreatedB6_260_, invoice0_.Updated as Updated7_260_, invoice0_.UpdatedBy as UpdatedB8_260_, invoice0_.IsSOTrx as IsSOTrx9_260_, invoice0_.DocumentNo as Documen10_260_, invoice0_.DocStatus as DocStat11_260_, invoice0_.DocAction as DocActi12_260_, invoice0_.Processing as Process13_260_, invoice0_.Processed as Process14_260_, invoice0_.Posted as Posted15_260_, invoice0_.C_DocType_ID as C_DocTy16_260_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_260_, invoice0_.C_Order_ID as C_Order18_260_, invoice0_.Description as Descrip19_260_, invoice0_.IsPrinted as IsPrint20_260_, invoice0_.SalesRep_ID as SalesRe21_260_, invoice0_.DateInvoiced as DateInv22_260_, invoice0_.DatePrinted as DatePri23_260_, invoice0_.DateAcct as DateAcc24_260_, invoice0_.C_BPartner_ID as C_BPart25_260_, invoice0_.C_BPartner_Location_ID as C_BPart26_260_, invoice0_.POReference as PORefer27_260_, invoice0_.IsDiscountPrinted as IsDisco28_260_, invoice0_.DateOrdered as DateOrd29_260_, invoice0_.C_Currency_ID as C_Curre30_260_, invoice0_.C_PaymentTerm_ID as C_Payme31_260_, invoice0_.C_Charge_ID as C_Charg32_260_, invoice0_.ChargeAmt as ChargeA33_260_, invoice0_.TotalLines as TotalLi34_260_, invoice0_.GrandTotal as GrandTo35_260_, invoice0_.M_PriceList_ID as M_Price36_260_, invoice0_.IsTaxIncluded as IsTaxIn37_260_, invoice0_.C_Campaign_ID as C_Campa38_260_, invoice0_.C_Project_ID as C_Proje39_260_, invoice0_.C_Activity_ID as C_Activ40_260_, invoice0_.CreateFrom as CreateF41_260_, invoice0_.GenerateTo as Generat42_260_, invoice0_.AD_User_ID as AD_User43_260_, invoice0_.CopyFrom as CopyFro44_260_, invoice0_.IsSelfService as IsSelfS45_260_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_260_, invoice0_.User1_ID as User47_260_, invoice0_.User2_ID as User48_260_, invoice0_.Withholdingamount as Withhol49_260_, invoice0_.Taxdate as Taxdate50_260_, invoice0_.C_Withholding_ID as C_Withh51_260_, invoice0_.Ispaid as Ispaid52_260_, invoice0_.EM_Einv_Generated as EM_Einv53_260_, invoice0_.Totalpaid as Totalpa54_260_, invoice0_.EM_Einv_Sent as EM_Einv55_260_, invoice0_.OutstandingAmt as Outstan56_260_, invoice0_.DaysTillDue as DaysTil57_260_, invoice0_.DueAmt as DueAmt58_260_, invoice0_.LastCalculatedOnDate as LastCal59_260_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_260_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_260_, invoice0_.Finalsettlement as Finalse62_260_, invoice0_.Daysoutstanding as Daysout63_260_, invoice0_.Percentageoverdue as Percent64_260_, invoice0_.C_Costcenter_ID as C_Costc65_260_, invoice0_.Calculate_Promotions as Calcula66_260_, invoice0_.A_Asset_ID as A_Asset67_260_, invoice0_.EM_APRM_Addpayment as EM_APRM68_260_, invoice0_.Iscashvat as Iscashv69_260_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_260_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_260_, invoice0_.Prepaymentamt as Prepaym72_260_, invoice0_.Createfromorders as Createf73_260_, invoice0_.Createfrominouts as Createf74_260_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_260_, invoice0_.Paidamtatinvoicing as Paidamt76_260_, invoice0_.EM_Obpos_Rounding_Amount as EM_Obpo77_260_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_260_, invoice0_.BPartner_ExtRef as BPartne79_260_, invoice0_.EM_Aeatsii_Send as EM_Aeat80_260_, invoice0_.EM_Obpos_Sequencename as EM_Obpo81_260_, invoice0_.EM_Aeatsii_Issent as EM_Aeat82_260_, invoice0_.EM_Obpos_Sequencenumber as EM_Obpo83_260_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat84_260_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat85_260_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat86_260_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou87_260_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat88_260_, invoice0_.EM_Ml_Select_Product as EM_Ml_S89_260_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou90_260_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat91_260_, invoice0_.EM_Prouti_Totalizations as EM_Prou92_260_, invoice0_.EM_Aeatsii_Dua as EM_Aeat93_260_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aeat94_260_, invoice0_.EM_Aeatsii_Estado as EM_Aeat95_260_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aeat96_260_, invoice0_.EM_Aeatsii_Modif as EM_Aeat97_260_, invoice0_.EM_Aeatsii_Modified as EM_Aeat98_260_, invoice0_.EM_Aeatsii_Description_ID as EM_Aeat99_260_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea100_260_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea101_260_, invoice0_.EM_Aeatsii_Dup as EM_Aea102_260_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea103_260_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea104_260_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea105_260_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea106_260_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea107_260_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea108_260_, invoice0_.EM_Aeatsii_Periodo as EM_Aea109_260_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea110_260_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea111_260_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea112_260_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea113_260_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea114_260_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea115_260_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri116_260_, invoice0_.EM_Priuti_Generated as EM_Pri117_260_, invoice0_.EM_Priuti_Date_Complete as EM_Pri118_260_, invoice0_.EM_Prges_Expediente_ID as EM_Prg119_260_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri120_260_, invoice0_.EM_Prges_Annotation_ID as EM_Prg121_260_, invoice0_.EM_Prges_Record_Number as EM_Prg122_260_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri123_260_, invoice0_.EM_Prges_Grantotal as EM_Prg124_260_, invoice0_.EM_Priuti_Validate as EM_Pri125_260_, invoice0_.EM_Priuti_Start_Review as EM_Pri126_260_, invoice0_.EM_Prges_Poreference as EM_Prg127_260_, invoice0_.em_cactl_createfromship as em_cac128_260_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID=finpayment1_.C_Invoice_ID where invoice0_.Processed='Y' and (invoice0_.Ispaid='N' or finpayment1_.Updated>=invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt<>0 or invoice0_.Finalsettlement is null) and invoice0_.IsActive='Y' |
| d817a62e25 | select order0_.C_Order_ID as C_Order_1_276_, order0_.AD_Client_ID as AD_Clien2_276_, order0_.AD_Org_ID as AD_Org_I3_276_, order0_.IsActive as IsActive4_276_, order0_.Created as Created5_276_, order0_.CreatedBy as CreatedB6_276_, order0_.Updated as Updated7_276_, order0_.UpdatedBy as UpdatedB8_276_, order0_.IsSOTrx as IsSOTrx9_276_, order0_.DocumentNo as Documen10_276_, order0_.DocStatus as DocStat11_276_, order0_.DocAction as DocActi12_276_, order0_.Processing as Process13_276_, order0_.Processed as Process14_276_, order0_.C_DocType_ID as C_DocTy15_276_, order0_.C_DocTypeTarget_ID as C_DocTy16_276_, order0_.Description as Descrip17_276_, order0_.IsDelivered as IsDeliv18_276_, order0_.IsInvoiced as IsInvoi19_276_, order0_.IsPrinted as IsPrint20_276_, order0_.IsSelected as IsSelec21_276_, order0_.SalesRep_ID as SalesRe22_276_, order0_.DateOrdered as DateOrd23_276_, order0_.DatePromised as DatePro24_276_, order0_.DatePrinted as DatePri25_276_, order0_.DateAcct as DateAcc26_276_, order0_.C_BPartner_ID as C_BPart27_276_, order0_.BillTo_ID as BillTo_28_276_, order0_.C_BPartner_Location_ID as C_BPart29_276_, order0_.POReference as PORefer30_276_, order0_.IsDiscountPrinted as IsDisco31_276_, order0_.C_Currency_ID as C_Curre32_276_, order0_.PaymentRule as Payment33_276_, order0_.C_PaymentTerm_ID as C_Payme34_276_, order0_.InvoiceRule as Invoice35_276_, order0_.DeliveryRule as Deliver36_276_, order0_.FreightCostRule as Freight37_276_, order0_.FreightAmt as Freight38_276_, order0_.DeliveryViaRule as Deliver39_276_, order0_.M_Shipper_ID as M_Shipp40_276_, order0_.C_Charge_ID as C_Charg41_276_, order0_.ChargeAmt as ChargeA42_276_, order0_.PriorityRule as Priorit43_276_, order0_.TotalLines as TotalLi44_276_, order0_.GrandTotal as GrandTo45_276_, order0_.M_Warehouse_ID as M_Wareh46_276_, order0_.M_PriceList_ID as M_Price47_276_, order0_.IsTaxIncluded as IsTaxIn48_276_, order0_.C_Campaign_ID as C_Campa49_276_, order0_.C_Project_ID as C_Proje50_276_, order0_.C_Activity_ID as C_Activ51_276_, order0_.Posted as Posted52_276_, order0_.AD_User_ID as AD_User53_276_, order0_.CopyFrom as CopyFro54_276_, order0_.DropShip_BPartner_ID as DropShi55_276_, order0_.DropShip_Location_ID as DropShi56_276_, order0_.DropShip_User_ID as DropShi57_276_, order0_.IsSelfService as IsSelfS58_276_, order0_.AD_OrgTrx_ID as AD_OrgT59_276_, order0_.User1_ID as User60_276_, order0_.User2_ID as User61_276_, order0_.Deliverynotes as Deliver62_276_, order0_.C_Incoterms_ID as C_Incot63_276_, order0_.Incotermsdescription as Incoter64_276_, order0_.Generatetemplate as Generat65_276_, order0_.Delivery_Location_ID as Deliver66_276_, order0_.CopyFromPO as CopyFro67_276_, order0_.FIN_Paymentmethod_ID as FIN_Pay68_276_, order0_.FIN_Payment_Priority_ID as FIN_Pay69_276_, order0_.RM_PickFromShipment as RM_Pick70_276_, order0_.RM_ReceiveMaterials as RM_Rece71_276_, order0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm72_276_, order0_.RM_CreateInvoice as RM_Crea73_276_, order0_.C_Return_Reason_ID as C_Retur74_276_, order0_.RM_AddOrphanLine as RM_AddO75_276_, order0_.A_Asset_ID as A_Asset76_276_, order0_.Calculate_Promotions as Calcula77_276_, order0_.C_Costcenter_ID as C_Costc78_276_, order0_.Convertquotation as Convert79_276_, order0_.C_Reject_Reason_ID as C_Rejec80_276_, order0_.validuntil as validun81_276_, order0_.Quotation_ID as Quotati82_276_, order0_.SO_Res_Status as SO_Res_83_276_, order0_.Create_POLines as Create_84_276_, order0_.EM_Obdisc_Addpack as EM_Obdi85_276_, order0_.Iscashvat as Iscashv86_276_, order0_.EM_OBMFM_Selectfreight as EM_OBMF87_276_, order0_.EM_OBMFM_Delivery_Period_ID as EM_OBMF88_276_, order0_.RM_Pickfromreceipt as RM_Pick89_276_, order0_.Cancelandreplace as Cancela90_276_, order0_.EM_Advcrm_Newactivity as EM_Advc91_276_, order0_.EM_APRM_AddPayment as EM_APRM92_276_, order0_.EM_OBMFM_Delivery_Charges as EM_OBMF93_276_, order0_.EM_OBMFM_Freight_ID as EM_OBMF94_276_, order0_.EM_Obwpl_Generatepicking as EM_Obwp95_276_, order0_.EM_Advcrm_Opportunity_ID as EM_Advc96_276_, order0_.EM_OBMFM_Weight as EM_OBMF97_276_, order0_.EM_Obwpl_Isinpickinglist as EM_Obwp98_276_, order0_.EM_Rcinv_Contractdate as EM_Rcin99_276_, order0_.EM_Obwpl_Readypl as EM_Obw100_276_, order0_.EM_Rcinv_Initialdate as EM_Rci101_276_, order0_.EM_Rcinv_Enddate as EM_Rci102_276_, order0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgp103_276_, order0_.EM_OBMFM_Weight_Uom_ID as EM_OBM104_276_, order0_.EM_Rcinv_Frequency as EM_Rci105_276_, order0_.EM_OBMFM_Set_Weight as EM_OBM106_276_, order0_.EM_Rcinv_Renewautomatically as EM_Rci107_276_, order0_.EM_Aeatsii_Fecha_Operacion as EM_Aea108_276_, order0_.EM_Ml_Select_Product as EM_Ml_109_276_, order0_.EM_Rcinv_Renovationtimes as EM_Rci110_276_, order0_.Confirmcancelandreplace as Confir111_276_, order0_.EM_Aeatsii_Descripcion_Sii as EM_Aea112_276_, order0_.EM_Obpos_Applications_ID as EM_Obp113_276_, order0_.EM_Rcinv_Freqrenovationtime as EM_Rci114_276_, order0_.EM_Obpos_Sendemail as EM_Obp115_276_, order0_.EM_Rcinv_Ordercontract_ID as EM_Rci116_276_, order0_.EM_Obpos_Email_Status as EM_Obp117_276_, order0_.EM_Rcinv_Freqtime as EM_Rci118_276_, order0_.Cancelledorder_id as Cancel119_276_, order0_.EM_Obpos_App_Cashup_ID as EM_Obp120_276_, order0_.EM_Obpos_Createdabsolute as EM_Obp121_276_, order0_.Replacedorder_id as Replac122_276_, order0_.EM_OBPOS_NotInvoiceOnCashUp as EM_OBP123_276_, order0_.EM_Obpos_Rejected_Quotat_ID as EM_Obp124_276_, order0_.EM_Obpos_Isdeleted as EM_Obp125_276_, order0_.Iscancelled as Iscanc126_276_, order0_.EM_Obpos_Islayaway as EM_Obp127_276_, order0_.EM_Obpos_Prepaymentamt as EM_Obp128_276_, order0_.Replacementorder_ID as Replac129_276_, order0_.EM_Obpos_Prepaymentlimitamt as EM_Obp130_276_, order0_.EM_Obpos_Prepaymentlaylimitamt as EM_Obp131_276_, order0_.EM_Obpos_Rounding_Amount as EM_Obp132_276_, order0_.BPartner_ExtRef as BPartn133_276_, order0_.EM_Obpos_Sequencename as EM_Obp134_276_, order0_.EM_Prqc_Clauses_Selector as EM_Prq135_276_, order0_.EM_Obpos_Sequencenumber as EM_Obp136_276_, order0_.EM_Rcinv_Cancelcontract as EM_Rci137_276_, order0_.EM_Rcinv_Cancelleddate as EM_Rci138_276_, order0_.EM_Rcinv_Iscancelled as EM_Rci139_276_, order0_.EM_Psat_Activity_ID as EM_Psa140_276_, order0_.EM_OBSMAIL_EmailAddress as EM_OBS141_276_, order0_.EM_Prouti_Order_Stock as EM_Pro142_276_, order0_.EM_Prouti_Pregenerate_Minout as EM_Pro143_276_, order0_.EM_Prouti_Sotopo as EM_Pro144_276_, order0_.EM_Prouti_Generate_Pick_Inv as EM_Pro145_276_, order0_.EM_Pricm_Order_ID as EM_Pri146_276_, order0_.EM_Prouti_Order_ID as EM_Pro147_276_, order0_.EM_Prouti_Grandtotalinitial as EM_Pro148_276_, order0_.EM_Prouti_Dateclosed as EM_Pro149_276_, order0_.EM_Prouti_Totallinesinitial as EM_Pro150_276_, order0_.EM_Prouti_Changebpartner as EM_Pro151_276_, order0_.EM_Prouti_Recalculate_Price as EM_Pro152_276_, order0_.em_prqr_execute as em_prq153_276_, order0_.EM_Prouti_Pricecalculatetdate as EM_Pro154_276_, order0_.EM_Prqr_Execute_Purchase as EM_Prq155_276_, order0_.EM_Prouti_Reactiveorder as EM_Pro156_276_, order0_.EM_Prqr_Return_Select_Prod as EM_Prq157_276_, order0_.EM_Prouti_Totalizations as EM_Pro158_276_, order0_.em_prouti_Invoiced as em_pro159_276_, order0_.em_prouti_Received as em_pro160_276_, order0_.em_prouti_initial_received as em_pro161_276_, order0_.EM_Prouti_Status_Of_Review as EM_Pro162_276_, order0_.EM_Prouti_Validate_Order as EM_Pro163_276_, order0_.EM_Prouti_Start_Review as EM_Pro164_276_, order0_.EM_Ml_Select_Product_Byattrib as EM_Ml_165_276_, order0_.EM_Prres_Reservation_ID as EM_Prr166_276_, order0_.EM_Prres_Responsible_ID as EM_Prr167_276_, order0_.EM_Prres_Diners as EM_Prr168_276_, order0_.EM_Prres_Sended as EM_Prr169_276_, order0_.EM_Prres_Printed as EM_Prr170_276_, order0_.EM_Prouti_Initial_Bp_ID as EM_Pro171_276_, order0_.EM_Prouti_Addlines_Btn as EM_Pro172_276_, order0_.EM_Prtoma_Tomaticket_ID as EM_Prt173_276_, order0_.EM_Cactl_IsCopy as EM_Cac174_276_, order0_.EM_Prtoma_Jsonorder as EM_Prt175_276_, order0_.EM_Prres_Paid_On_Credit as EM_Prr176_276_, order0_.EM_Prtoma_Grossamount as EM_Prt177_276_, order0_.EM_Cactl_Internal_Notes_Group as EM_Cac178_276_, order0_.EM_Prouti_Changebpartner_Bgt as EM_Pro179_276_, order0_.EM_Prrgr_Locator_ID as EM_Prr180_276_, order0_.EM_Paytef_Transactionreference as EM_Pay181_276_, order0_.EM_Cactl_Indirect_Cost_ID as EM_Cac182_276_, order0_.EM_Cactl_Calculate_Cost as EM_Cac183_276_, order0_.EM_Cactl_Totalcost as EM_Cac184_276_, order0_.EM_Cactl_Forceselectedproject as EM_Cac185_276_, order0_.EM_Cactl_Verified_Return as EM_Cac186_276_, order0_.EM_Cactl_Duplicate_Budget as EM_Cac187_276_, order0_.EM_Prres_Orig_Order_ID as EM_Prr188_276_, order0_.EM_Prcpr_Is_Cloned as EM_Prc189_276_, order0_.EM_Prouti_Select_Soline as EM_Pro190_276_, order0_.EM_Prouti_Return_Quantity as EM_Pro191_276_, order0_.EM_Prqr_Executecredit as EM_Prq192_276_, order0_.Em_Prqr_Credit_Purchase_ID as Em_Prq193_276_ from C_Order order0_ cross join C_DocType documentty1_ where order0_.C_DocTypeTarget_ID=documentty1_.C_DocType_ID and order0_.IsSOTrx=$43 and documentty1_.IsReturn=$44 and (order0_.Updated>$1 or order0_.Processed=$45) and (order0_.AD_Org_ID in ($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)) and (order0_.AD_Client_ID in ($40 , $41)) order by order0_.DocumentNo, order0_.C_Order_ID limit $42 |
| 6e47e0b2e7 | select passinst.value as pass, m_product.name as name, m_product.em_prpass_doc_required as requiresDocumentation , coalesce(co.documentno,$1) as ticket, case when pt.slot_type = $2 then ptr.date::date else (ptr.date::date || $3 || ptd.hour::time)::timestamp end as hour, pt.slot_type as slot_type, passinst.unlimited as unlimited from prpass_pass_inst passinst join m_product on m_product.m_product_id=passinst.m_product_id left join c_order co on co.c_order_id = passinst.c_order_id left join prpass_timeslots_res ptr on ptr.prpass_timeslots_res_id = passinst.prpass_timeslots_res_id left join prpass_timeslots_detail ptd on ptd.prpass_timeslots_detail_id = ptr.prpass_timeslots_detail_id left join prpass_timeslots pt on pt.prpass_timeslots_id = ptd.prpass_timeslots_id where (passinst.status NOT IN ($4,$5,$6,$7) AND case when m_product.em_prpass_org_selection=$8 then (exists (select $9 from prpass_organization passorg where passorg.m_product_id=m_product.m_product_id and passorg.ad_orgtrx_id=$10)) else (not exists (select $11 from prpass_organization passorg where passorg.m_product_id=m_product.m_product_id and passorg.ad_orgtrx_id=$12)) end AND case when passinst.unlimited != $13 then not exists (select $14 from prpass_pass_trans passtrans where passtrans.prpass_pass_inst_id=passinst.prpass_pass_inst_id and passtrans.ad_validation_org_id=$15) else $16=$17 end) and (m_product.em_prpass_ispass is not null and m_product.em_prpass_ispass = $18 and m_product.isactive = $19) and (m_product.em_prpass_datefrom is null or m_product.em_prpass_datefrom <= CURRENT_DATE) and (m_product.em_prpass_dateto is null or m_product.em_prpass_dateto >= CURRENT_DATE) |
| 8fe405377b | SELECT * FROM M_Inout_Create($8, v_Record_ID, $9, $10) |
| 784dd58a53 | SELECT $2 FROM ONLY "public"."c_uom" x WHERE "c_uom_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| 1266b03316 | COPY public.prpass_pass_trans_hist (prpass_pass_trans_hist_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, prpass_pass_inst_hist_id, ad_validation_org_id, ad_validation_user_id, obpos_applications_id) TO stdout |
| 0a99da7198 | SELECT AD_EXTENSION_POINT_HANDLER(v_ep_instance, v_extension_point_id) |
| 096068c9bd | SELECT COUNT(*) AS ID FROM C_OrderLine WHERE Replacedorderline_id = $1 AND EXISTS (SELECT $2 FROM C_Order WHERE C_Order.C_Order_ID = C_OrderLine.C_Order_ID AND C_Order.IsSOTrx=$3 and exists ( select $4 from C_DocType where C_DocType_ID = C_Order.C_DocTypeTarget_ID and isreturn=$5)) AND AD_ORG_ID IN ($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) AND AD_CLIENT_ID IN ($44) |
| 4dea79c24d | select invoice0_.C_Invoice_ID as C_Invoic1_260_, invoice0_.AD_Client_ID as AD_Clien2_260_, invoice0_.AD_Org_ID as AD_Org_I3_260_, invoice0_.IsActive as IsActive4_260_, invoice0_.Created as Created5_260_, invoice0_.CreatedBy as CreatedB6_260_, invoice0_.Updated as Updated7_260_, invoice0_.UpdatedBy as UpdatedB8_260_, invoice0_.IsSOTrx as IsSOTrx9_260_, invoice0_.DocumentNo as Documen10_260_, invoice0_.DocStatus as DocStat11_260_, invoice0_.DocAction as DocActi12_260_, invoice0_.Processing as Process13_260_, invoice0_.Processed as Process14_260_, invoice0_.Posted as Posted15_260_, invoice0_.C_DocType_ID as C_DocTy16_260_, invoice0_.C_DocTypeTarget_ID as C_DocTy17_260_, invoice0_.C_Order_ID as C_Order18_260_, invoice0_.Description as Descrip19_260_, invoice0_.IsPrinted as IsPrint20_260_, invoice0_.SalesRep_ID as SalesRe21_260_, invoice0_.DateInvoiced as DateInv22_260_, invoice0_.DatePrinted as DatePri23_260_, invoice0_.DateAcct as DateAcc24_260_, invoice0_.C_BPartner_ID as C_BPart25_260_, invoice0_.C_BPartner_Location_ID as C_BPart26_260_, invoice0_.POReference as PORefer27_260_, invoice0_.IsDiscountPrinted as IsDisco28_260_, invoice0_.DateOrdered as DateOrd29_260_, invoice0_.C_Currency_ID as C_Curre30_260_, invoice0_.C_PaymentTerm_ID as C_Payme31_260_, invoice0_.C_Charge_ID as C_Charg32_260_, invoice0_.ChargeAmt as ChargeA33_260_, invoice0_.TotalLines as TotalLi34_260_, invoice0_.GrandTotal as GrandTo35_260_, invoice0_.M_PriceList_ID as M_Price36_260_, invoice0_.IsTaxIncluded as IsTaxIn37_260_, invoice0_.C_Campaign_ID as C_Campa38_260_, invoice0_.C_Project_ID as C_Proje39_260_, invoice0_.C_Activity_ID as C_Activ40_260_, invoice0_.CreateFrom as CreateF41_260_, invoice0_.GenerateTo as Generat42_260_, invoice0_.AD_User_ID as AD_User43_260_, invoice0_.CopyFrom as CopyFro44_260_, invoice0_.IsSelfService as IsSelfS45_260_, invoice0_.AD_OrgTrx_ID as AD_OrgT46_260_, invoice0_.User1_ID as User47_260_, invoice0_.User2_ID as User48_260_, invoice0_.Withholdingamount as Withhol49_260_, invoice0_.Taxdate as Taxdate50_260_, invoice0_.C_Withholding_ID as C_Withh51_260_, invoice0_.Ispaid as Ispaid52_260_, invoice0_.EM_Einv_Generated as EM_Einv53_260_, invoice0_.Totalpaid as Totalpa54_260_, invoice0_.EM_Einv_Sent as EM_Einv55_260_, invoice0_.OutstandingAmt as Outstan56_260_, invoice0_.DaysTillDue as DaysTil57_260_, invoice0_.DueAmt as DueAmt58_260_, invoice0_.LastCalculatedOnDate as LastCal59_260_, invoice0_.FIN_Paymentmethod_ID as FIN_Pay60_260_, invoice0_.FIN_Payment_Priority_ID as FIN_Pay61_260_, invoice0_.Finalsettlement as Finalse62_260_, invoice0_.Daysoutstanding as Daysout63_260_, invoice0_.Percentageoverdue as Percent64_260_, invoice0_.C_Costcenter_ID as C_Costc65_260_, invoice0_.Calculate_Promotions as Calcula66_260_, invoice0_.A_Asset_ID as A_Asset67_260_, invoice0_.EM_APRM_Addpayment as EM_APRM68_260_, invoice0_.Iscashvat as Iscashv69_260_, invoice0_.EM_APRM_Processinvoice as EM_APRM70_260_, invoice0_.EM_Obcma_C_Poc_Email_ID as EM_Obcm71_260_, invoice0_.Prepaymentamt as Prepaym72_260_, invoice0_.Createfromorders as Createf73_260_, invoice0_.Createfrominouts as Createf74_260_, invoice0_.EM_Advcrm_Newactivity as EM_Advc75_260_, invoice0_.Paidamtatinvoicing as Paidamt76_260_, invoice0_.EM_Obpos_Rounding_Amount as EM_Obpo77_260_, invoice0_.EM_Sgpcrm_Securitygroups_ID as EM_Sgpc78_260_, invoice0_.BPartner_ExtRef as BPartne79_260_, invoice0_.EM_Aeatsii_Send as EM_Aeat80_260_, invoice0_.EM_Obpos_Sequencename as EM_Obpo81_260_, invoice0_.EM_Aeatsii_Issent as EM_Aeat82_260_, invoice0_.EM_Obpos_Sequencenumber as EM_Obpo83_260_, invoice0_.EM_Aeatsii_Fecha_Operacion as EM_Aeat84_260_, invoice0_.EM_Aeatsii_Clave_Tipo as EM_Aeat85_260_, invoice0_.EM_Aeatsii_Motivo_Rectif as EM_Aeat86_260_, invoice0_.EM_Prouti_Recalculate_Price as EM_Prou87_260_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as EM_Aeat88_260_, invoice0_.EM_Ml_Select_Product as EM_Ml_S89_260_, invoice0_.EM_Prouti_Pricecalculatetdate as EM_Prou90_260_, invoice0_.EM_Aeatsii_Tipo_Rectif as EM_Aeat91_260_, invoice0_.EM_Prouti_Totalizations as EM_Prou92_260_, invoice0_.EM_Aeatsii_Dua as EM_Aeat93_260_, invoice0_.EM_Aeatsii_Fecha_Dua as EM_Aeat94_260_, invoice0_.EM_Aeatsii_Estado as EM_Aeat95_260_, invoice0_.EM_Aeatsii_Error_Registral as EM_Aeat96_260_, invoice0_.EM_Aeatsii_Modif as EM_Aeat97_260_, invoice0_.EM_Aeatsii_Modified as EM_Aeat98_260_, invoice0_.EM_Aeatsii_Description_ID as EM_Aeat99_260_, invoice0_.EM_Aeatsii_Descripcion_Sii as EM_Aea100_260_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as EM_Aea101_260_, invoice0_.EM_Aeatsii_Dup as EM_Aea102_260_, invoice0_.EM_Aeatsii_Error_Code as EM_Aea103_260_, invoice0_.EM_Aeatsii_Error_Msg as EM_Aea104_260_, invoice0_.EM_Aeatsii_Unsubscribe as EM_Aea105_260_, invoice0_.EM_Aeatsii_Pur_Description_ID as EM_Aea106_260_, invoice0_.EM_Aeatsii_Multi_Dua as EM_Aea107_260_, invoice0_.EM_Aeatsii_Ejercicio as EM_Aea108_260_, invoice0_.EM_Aeatsii_Periodo as EM_Aea109_260_, invoice0_.EM_Aeatsii_Autofactura as EM_Aea110_260_, invoice0_.EM_Aeatsii_Invoice_ID as EM_Aea111_260_, invoice0_.EM_Aeatsii_Insiidate as EM_Aea112_260_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as EM_Aea113_260_, invoice0_.EM_Aeatsii_Isauthorization as EM_Aea114_260_, invoice0_.EM_Aeatsii_Authorizationno as EM_Aea115_260_, invoice0_.EM_Priuti_Createpurchinv as EM_Pri116_260_, invoice0_.EM_Priuti_Generated as EM_Pri117_260_, invoice0_.EM_Priuti_Date_Complete as EM_Pri118_260_, invoice0_.EM_Prges_Expediente_ID as EM_Prg119_260_, invoice0_.EM_Priuti_User_Complete_ID as EM_Pri120_260_, invoice0_.EM_Prges_Annotation_ID as EM_Prg121_260_, invoice0_.EM_Prges_Record_Number as EM_Prg122_260_, invoice0_.EM_Priuti_Status_Of_Review as EM_Pri123_260_, invoice0_.EM_Prges_Grantotal as EM_Prg124_260_, invoice0_.EM_Priuti_Validate as EM_Pri125_260_, invoice0_.EM_Priuti_Start_Review as EM_Pri126_260_, invoice0_.EM_Prges_Poreference as EM_Prg127_260_, invoice0_.em_cactl_createfromship as em_cac128_260_ from C_Invoice invoice0_ where invoice0_.IsSOTrx=$43 and invoice0_.DocStatus<>$44 and (invoice0_.Updated>$1 or invoice0_.Processed=$45) and (invoice0_.AD_Org_ID in ($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)) and (invoice0_.AD_Client_ID in ($40 , $41)) order by invoice0_.OutstandingAmt, invoice0_.C_Invoice_ID limit $42 |
| 2bbd1014ed | SELECT $2 FROM ONLY "public"."c_doctype" x WHERE "c_doctype_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| b91bad558a | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 6aeca8addc | SELECT * FROM (select fa.fin_financial_account_id AS referencekey_id, ad_column_identifier_std($2, fa.fin_financial_account_id) AS record_id, $3 AS ad_role_id, $4 AS ad_user_id, $5 || fa.name || $6 || fa.currentbalance || $7 || (fa.initialbalance + (select sum(depositamt) - sum(paymentamt) from fin_finacc_transaction where fa.fin_financial_account_id=fin_finacc_transaction.fin_financial_account_id and fin_finacc_transaction.processed=$8)) || $9|| fa.currentbalance- (fa.initialbalance + (select sum(depositamt) - sum(paymentamt) from fin_finacc_transaction where fa.fin_financial_account_id=fin_finacc_transaction.fin_financial_account_id and fin_finacc_transaction.processed=$10)) AS description, $11 AS isActive, $12 AS ad_org_id, fa.ad_client_id AS ad_client_id, now() AS created, $13 AS createdBy, now() AS updated, $14 AS updatedBy from fin_financial_account fa where fa.currentbalance <> fa.initialbalance + (select sum(depositamt) - sum(paymentamt) from fin_finacc_transaction where fa.fin_financial_account_id=fin_finacc_transaction.fin_financial_account_id and fin_finacc_transaction.processed=$15)) AAA where not exists (select $16 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $17) != $18) |
| 12af87b05a | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| e2c0748a35 | SELECT * FROM Ad_Sequence_Doc($96, Cur_Order.AD_Client_ID, $97) |
| 4cb9cc1cbf | SELECT C_ORDER_POST1($1, $2, $3) |
| 6758866a26 | insert into obmobc_logclient ( obmobc_logclient_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, tstamp, deviceid, context, msg, loglevel, cache_session_id, isonline ) values ( get_uuid(), $1, $2, $14, to_timestamp(to_char($3), to_char($15)), $4, to_timestamp(to_char($5), to_char($16)), $6, to_number($7), $8, $9, $10, $11, $12, $13 ) |
| dca3f71473 | SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, C_CURRENCY_SYMBOL($1, $7, $8) AS CONVSYM, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, C_CURRENCY_ISOSYM($2) AS CONVISOSYM FROM (SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, SUM(LINENETAMT) AS AMOUNT, SUM(MOVEMENTQTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(LINENETREF) AS AMOUNTREF, SUM(MOVEMENTQTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, C_CURRENCY_CONVERT(SUM(LINENETAMT), TRCURRENCYID, $3, TO_DATE(TRDATE), $9, TRCLIENTID, TRORGID) AS CONVAMOUNT, $10 AS CONVAMOUNTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID FROM (SELECT to_char(AD_COLUMN_IDENTIFIER(to_char($11), to_char( M_PRODUCT.M_PRODUCT_ID), to_char($12))|| CASE WHEN uomsymbol IS NULL THEN $13 ELSE to_char($14||uomsymbol||$15) END) AS NIVEL1, to_char(AD_ORG.NAME) AS NIVEL2, to_char(M_INOUT.DOCUMENTNO) AS NIVEL3, to_char($16) AS NIVEL4, to_char($17) AS NIVEL5, to_char($18) AS NIVEL6, to_char($19) AS NIVEL7, to_char($20) AS NIVEL8, to_char($21) AS NIVEL9, COALESCE(M_INOUTLINE.MOVEMENTQTY*C_ORDERLINE.PRICEACTUAL,$22) AS LINENETAMT, M_INOUTLINE.MOVEMENTQTY, M_INOUTLINE.MOVEMENTQTY*M_PRODUCT.WEIGHT AS WEIGHT, $23 AS LINENETREF, $24 AS MOVEMENTQTYREF, $25 AS WEIGHTREF, C_UOM.UOMSYMBOL, C_ORDERLINE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_ORDER.DATEORDERED, NOW())) AS TRDATE, C_ORDERLINE.AD_CLIENT_ID AS TRCLIENTID, C_ORDERLINE.AD_ORG_ID AS TRORGID FROM M_INOUTLINE left join C_ORDERLINE on M_INOUTLINE.C_ORDERLINE_ID = C_ORDERLINE.C_ORDERLINE_ID left join C_ORDER on C_ORDERLINE.C_ORDER_ID = C_ORDER.C_ORDER_ID, M_INOUT left join AD_USER on M_INOUT.SALESREP_ID = AD_USER.AD_USER_ID, C_BPARTNER left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID, C_BP_GROUP, M_PRODUCT, M_PRODUCT_CATEGORY, M_WAREHOUSE, C_UOM, AD_ORG WHERE M_INOUT.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID AND M_INOUT.M_INOUT_ID = M_INOUTLINE.M_INOUT_ID AND M_INOUTLINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID AND M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID AND M_INOUT.M_WAREHOUSE_ID = M_WAREHOUSE.M_WAREHOUSE_ID AND M_INOUTLINE.C_UOM_ID = C_UOM.C_UOM_ID AND M_INOUT.AD_ORG_ID = AD_ORG.AD_ORG_ID AND M_INOUT.ISSOTRX = $26 AND M_INOUT.PROCESSED = $27 AND $28=$29 AND M_INOUT.AD_ORG_ID IN ($30) AND M_INOUT.AD_CLIENT_ID IN ($31,$32) AND $33=$34 AND M_INOUT.MOVEMENTDATE >= TO_DATE($4) AND M_INOUT.MOVEMENTDATE < TO_DATE($5) AND M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID = $6 ) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9 ORDER BY NIVEL1,NIVEL2,NIVEL3 |
| 59ed037ff5 | UPDATE m_requisitionline rl SET em_cactl_consumption = cactl_calculate_consumption(rl.m_product_id, rl.ad_org_id, rl.ad_client_id) FROM m_requisition r WHERE rl.reqstatus = $1 AND rl.m_requisition_id = r.m_requisition_id AND r.docstatus = $2 |
| 8d2c8e833f | SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, C_CURRENCY_SYMBOL($1, $7, $8) AS CONVSYM, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, C_CURRENCY_ISOSYM($2) AS CONVISOSYM FROM (SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, SUM(LINENETAMT) AS AMOUNT, SUM(MOVEMENTQTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(LINENETREF) AS AMOUNTREF, SUM(MOVEMENTQTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, C_CURRENCY_CONVERT(SUM(LINENETAMT), TRCURRENCYID, $3, TO_DATE(TRDATE), $9, TRCLIENTID, TRORGID) AS CONVAMOUNT, $10 AS CONVAMOUNTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID FROM (SELECT to_char(AD_COLUMN_IDENTIFIER(to_char($11), to_char( M_PRODUCT.M_PRODUCT_ID), to_char($12))|| CASE WHEN uomsymbol IS NULL THEN $13 ELSE to_char($14||uomsymbol||$15) END) AS NIVEL1, to_char(AD_ORG.NAME) AS NIVEL2, to_char($16) AS NIVEL3, to_char($17) AS NIVEL4, to_char($18) AS NIVEL5, to_char($19) AS NIVEL6, to_char($20) AS NIVEL7, to_char($21) AS NIVEL8, to_char($22) AS NIVEL9, COALESCE(M_INOUTLINE.MOVEMENTQTY*C_ORDERLINE.PRICEACTUAL,$23) AS LINENETAMT, M_INOUTLINE.MOVEMENTQTY, M_INOUTLINE.MOVEMENTQTY*M_PRODUCT.WEIGHT AS WEIGHT, $24 AS LINENETREF, $25 AS MOVEMENTQTYREF, $26 AS WEIGHTREF, C_UOM.UOMSYMBOL, C_ORDERLINE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_ORDER.DATEORDERED, NOW())) AS TRDATE, C_ORDERLINE.AD_CLIENT_ID AS TRCLIENTID, C_ORDERLINE.AD_ORG_ID AS TRORGID FROM M_INOUTLINE left join C_ORDERLINE on M_INOUTLINE.C_ORDERLINE_ID = C_ORDERLINE.C_ORDERLINE_ID left join C_ORDER on C_ORDERLINE.C_ORDER_ID = C_ORDER.C_ORDER_ID, M_INOUT left join AD_USER on M_INOUT.SALESREP_ID = AD_USER.AD_USER_ID, C_BPARTNER left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID, C_BP_GROUP, M_PRODUCT, M_PRODUCT_CATEGORY, M_WAREHOUSE, C_UOM, AD_ORG WHERE M_INOUT.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID AND M_INOUT.M_INOUT_ID = M_INOUTLINE.M_INOUT_ID AND M_INOUTLINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID AND M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID AND M_INOUT.M_WAREHOUSE_ID = M_WAREHOUSE.M_WAREHOUSE_ID AND M_INOUTLINE.C_UOM_ID = C_UOM.C_UOM_ID AND M_INOUT.AD_ORG_ID = AD_ORG.AD_ORG_ID AND M_INOUT.ISSOTRX = $27 AND M_INOUT.PROCESSED = $28 AND $29=$30 AND M_INOUT.AD_ORG_ID IN ($31) AND M_INOUT.AD_CLIENT_ID IN ($32,$33) AND $34=$35 AND M_INOUT.MOVEMENTDATE >= TO_DATE($4) AND M_INOUT.MOVEMENTDATE < TO_DATE($5) AND M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID = $6 ) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9 ORDER BY NIVEL1,NIVEL2 |
| 0d30ac7710 | SELECT C_INVOICE_POST($3, p_Invoice_ID) |
| 416d959161 | SELECT * FROM (SELECT c_order_id AS referencekey_id, ad_column_identifier_std($2, c_order_id) AS record_id, $3 AS ad_role_id, $4 AS ad_user_id, em_prouti_totalizations AS description, $5 AS isActive, ad_org_id, ad_client_id, now() AS created, $6 AS createdBy, now() AS updated, $7 AS updatedBy FROM c_order WHERE em_prouti_totalizations IS NOT NULL) AAA where not exists (select $8 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $9) != $10) |
| b280347c9b | select prges_reco0_.Prges_Records_ID as Prges_Re1_831_0_, prges_reco0_.AD_Client_ID as AD_Clien2_831_0_, prges_reco0_.AD_Org_ID as AD_Org_I3_831_0_, prges_reco0_.Created as Created4_831_0_, prges_reco0_.Createdby as Createdb5_831_0_, prges_reco0_.Updated as Updated6_831_0_, prges_reco0_.Updatedby as Updatedb7_831_0_, prges_reco0_.Isactive as Isactive8_831_0_, prges_reco0_.Action as Action9_831_0_, prges_reco0_.Url as Url10_831_0_, prges_reco0_.Jsoninfo as Jsoninf11_831_0_, prges_reco0_.Error as Error12_831_0_, prges_reco0_.Process as Process13_831_0_, prges_reco0_.Status as Status14_831_0_, prges_reco0_.C_Invoice_ID as C_Invoi15_831_0_, prges_reco0_.Prges_Config_ID as Prges_C16_831_0_ from prges_records prges_reco0_ where prges_reco0_.Prges_Records_ID=$1 |
| a29af35cca | UPDATE AD_Sequence SET CurrentNext=CurrentNext + IncrementNo, Updated=TO_DATE(NOW()) WHERE Name=p_SequenceName AND ad_client_id=p_ad_client_id |
| DB | Tablespace | Schema | Table | ~SeqBytes | SeqScan | IxScan | IxFet | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_orderline | 12 TB | 1444 | 65631131 | 1584067675 | 10788 | 29559 | 13 | 12226 |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | c_order | 5622 GB | 741 | 53313759 | 3952463957 | 4679 | 17392 | 5 | 10010 |
| c_order(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inout | 497 GB | 122 | 57666857 | 110009926 | 4568 | 10832 | 5930 | |
| m_inout(TOAST) | 3074 | 16913 | 103 | 80 | |||||||
| openbravo | pg_default | pg_temp_11 | ad_context_info | 363 GB | 75403 | 75393 | 75392 | ||||
| openbravo | pg_default | public | prpass_timeslots_res | 233 GB | 915 | 6095788 | 901480802 | 2134 | 1211 | 915 | |
| prpass_timeslots_res(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 223 GB | 82 | 273712 | 283367 | 4342 | 26051 | 58 | 4992 |
| fin_payment_scheduledetail(TOAST) | |||||||||||
| openbravo | pg_default | public | prpass_pass_inst_hist | 164 GB | 29 | 8471 | 8446 | 8496 | |||
| prpass_pass_inst_hist(TOAST) | |||||||||||
| openbravo | pg_default | public | prges_records | 122 GB | 1210 | 353893 | 353893 | 4 | 14 | 7 | |
| prges_records(TOAST) | 256285 | 355489 | |||||||||
| openbravo | pg_default | public | prpass_pass_inst | 104 GB | 17 | 13180319 | 355888320 | 9892 | 17749 | 8496 | 3950 |
| prpass_pass_inst(TOAST) | |||||||||||
| openbravo | pg_default | public | m_product | 61 GB | 6196 | 8663508 | 15116316 | 4 | 73 | 59 | |
| m_product(TOAST) | |||||||||||
| openbravo | pg_default | public | m_storage_detail | 59 GB | 2103 | 2120476 | 2142554 | 47 | 117058 | 38 | 66935 |
| m_storage_detail(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_audit_trail | 50 GB | 96 | 16243 | 7377 | 5614 | |||
| ad_audit_trail(TOAST) | |||||||||||
| openbravo | pg_default | public | prpass_pass_trans | 50 GB | 10 | 13907299 | 107973 | 9809 | 8446 | ||
| openbravo | pg_default | public | c_invoice | 49 GB | 7 | 56857734 | 626531873 | 4405 | 125871 | 1 | 19037 |
| c_invoice(TOAST) | |||||||||||
| openbravo | pg_default | public | c_bpartner | 34 GB | 3246 | 1102115 | 2101390 | 2 | 12276 | 11538 | |
| c_bpartner(TOAST) | |||||||||||
| openbravo | pg_default | public | fact_acct | 31 GB | 1 | 87723 | 103901293 | 31765 | 26035 | 3015 | |
| fact_acct(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 26 GB | 7 | 4426469 | 3917280 | 3140 | 21875 | 1 | 8597 |
| fin_payment(TOAST) | |||||||||||
| openbravo | pg_default | public | m_transaction | 25 GB | 2 | 250855 | 5040550 | 22482 | 47756 | 1275 | |
| m_transaction(TOAST) | |||||||||||
| openbravo | pg_default | public | c_invoiceline | 22 GB | 3 | 56518291 | 52454039 | 10036 | 2715 | 48 | 2161 |
| c_invoiceline(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inoutline | 18 GB | 3 | 57053550 | 1495496956 | 10413 | 2113 | 9 | 1891 |
| m_inoutline(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | ||||
| openbravo | pg_default | public | c_order | 3731779108 | 33.92 | 277943820 | 2.53 | ||||
| openbravo | pg_default | public | c_orderline | 1870182062 | 17.00 | 333932628 | 3.04 | ||||
| openbravo | pg_default | public | m_inoutline | 1496849308 | 13.61 | 239003452 | 2.17 | ||||
| openbravo | pg_default | public | c_invoice | 605671655 | 5.51 | 263679516 | 2.40 | ||||
| openbravo | pg_default | public | fin_finacc_transaction | 655694528 | 5.96 | 7851986 | 0.07 | ||||
| openbravo | pg_default | public | prpass_timeslots_res | 622691559 | 5.66 | 17183013 | 0.16 | ||||
| openbravo | pg_default | public | fin_payment_schedule | 111705752 | 1.02 | 419771144 | 3.82 | ||||
| openbravo | pg_default | public | m_inout | 172344239 | 1.57 | 232391087 | 2.11 | 6676 | 0.00 | 77844 | 0.00 |
| openbravo | pg_default | public | c_invoiceline | 55345565 | 0.50 | 227034455 | 2.06 | ||||
| openbravo | pg_default | public | m_costing | 105826886 | 0.96 | 5879141 | 0.05 | ||||
| openbravo | pg_default | public | fact_acct | 88813417 | 0.81 | 5433330 | 0.05 | ||||
| openbravo | pg_default | public | m_storage_detail | 58402464 | 0.53 | 8845594 | 0.08 | ||||
| openbravo | pg_default | public | prpass_pass_trans | 6742045 | 0.06 | 58020116 | 0.53 | ||||
| openbravo | pg_default | public | prpass_timeslots_exceptions | 30878344 | 0.28 | 11365232 | 0.10 | ||||
| openbravo | pg_default | public | m_product | 22914855 | 0.21 | 17987782 | 0.16 | ||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 29868842 | 0.27 | 1942720 | 0.02 | ||||
| openbravo | pg_default | public | ad_treenode | 1087242 | 0.01 | 26484611 | 0.24 | ||||
| openbravo | pg_default | public | m_transaction | 6654074 | 0.06 | 17773003 | 0.16 | ||||
| openbravo | pg_default | pg_temp_11 | ad_context_info | 23879762 | 0.22 | ||||||
| openbravo | pg_default | public | fin_payment | 7774341 | 0.07 | 15703392 | 0.14 | ||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | Hit(%) | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | |||||
| openbravo | pg_default | public | c_orderline | 256161119 | 49.82 | 2842024 | 0.55 | 88.25 | ||||
| openbravo | pg_default | public | c_order | 130919863 | 25.46 | 5186714 | 1.01 | 96.61 | ||||
| openbravo | pg_default | public | c_invoice | 17075169 | 3.32 | 6018657 | 1.17 | 97.34 | ||||
| openbravo | pg_default | public | prpass_pass_inst | 7691565 | 1.50 | 3247078 | 0.63 | 100.79 | ||||
| openbravo | pg_default | public | fact_acct | 9331837 | 1.81 | 1139150 | 0.22 | 88.89 | ||||
| openbravo | pg_default | public | m_inout | 7268038 | 1.41 | 1386375 | 0.27 | 4238 | 0.00 | 3648 | 0.00 | 97.86 |
| openbravo | pg_default | public | m_inoutline | 6408907 | 1.25 | 2099425 | 0.41 | 99.51 | ||||
| openbravo | pg_default | public | fin_finacc_transaction | 5564820 | 1.08 | 2487941 | 0.48 | 98.79 | ||||
| openbravo | pg_default | public | c_invoiceline | 4857450 | 0.94 | 2244876 | 0.44 | 97.48 | ||||
| openbravo | pg_default | public | m_transaction | 3579214 | 0.70 | 644401 | 0.13 | 82.71 | ||||
| openbravo | pg_default | public | fin_payment_schedule | 3279161 | 0.64 | 595341 | 0.12 | 99.27 | ||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 2611714 | 0.51 | 129564 | 0.03 | 91.38 | ||||
| openbravo | pg_default | public | ad_audit_trail | 2262807 | 0.44 | 13801 | 0.00 | 66.11 | ||||
| openbravo | pg_default | public | prpass_pass_trans | 672013 | 0.13 | 974629 | 0.19 | 97.46 | ||||
| openbravo | pg_default | public | fin_payment | 1526432 | 0.30 | 23504 | 0.00 | 93.40 | ||||
| openbravo | pg_default | public | m_productionline | 1272034 | 0.25 | 116354 | 0.02 | 90.18 | ||||
| openbravo | pg_default | public | m_costing | 970813 | 0.19 | 142064 | 0.03 | 99.00 | ||||
| openbravo | pg_default | public | prpass_pass_inst_hist | 740420 | 0.14 | 23672 | 0.00 | 96.51 | ||||
| openbravo | pg_default | public | ad_image | 304 | 0.00 | 146 | 0.00 | 653750 | 0.13 | 13219 | 0.00 | 13.83 |
| openbravo | pg_default | public | prpass_pass_trans_hist | 616421 | 0.12 | 18896 | 0.00 | 68.93 | ||||
| DB | Tablespace | Schema | Table | Ins | Upd | Del | Upd(HOT) | SeqScan | SeqFet | IxScan | IxFet |
|---|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | obmobc_logclient | 88842 | 76788 | 2 | 147875 | ||||
| obmobc_logclient(TOAST) | 4 | 2 | 6 | 2 | |||||||
| openbravo | pg_default | pg_temp_11 | ad_context_info | 75393 | 75392 | 75403 | 75402 | ||||
| openbravo | pg_default | profile | last_stat_indexes | 71003 | 1609 | 70992 | 184 | 1135960 | 43409 | 427615 | |
| openbravo | pg_default | public | c_invoice | 4405 | 125871 | 1 | 19037 | 7 | 49194704 | 56857734 | 626531873 |
| c_invoice(TOAST) | |||||||||||
| openbravo | pg_default | public | m_storage_detail | 47 | 117058 | 38 | 66935 | 2103 | 107877267 | 2120476 | 2142554 |
| m_storage_detail(TOAST) | |||||||||||
| openbravo | pg_default | public | m_stock_aux | 25450 | 62898 | 25450 | 47143 | 474060 | 274791 | ||
| m_stock_aux(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_tables | 41455 | 3672 | 41451 | 47 | 184 | 663248 | 8504 | 4140448 |
| openbravo | pg_default | public | c_import_entry | 12966 | 12966 | 12917 | 6095 | 106357 | 424901 | 483443 | |
| c_import_entry(TOAST) | 21329 | 21329 | 44277 | 183619 | |||||||
| openbravo | pg_default | public | m_transaction | 22482 | 47756 | 1275 | 2 | 61222191 | 250855 | 5040550 | |
| m_transaction(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_ep_instance_para | 34805 | 34805 | 58117 | 269042 | ||||
| ad_ep_instance_para(TOAST) | |||||||||||
| openbravo | pg_default | public | fact_acct | 31765 | 26035 | 3015 | 1 | 38058114 | 87723 | 103901293 | |
| fact_acct(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 32889 | 31306 | 1847106 | 1646485 | ||||
| pg_statistic(TOAST) | 6495 | 6503 | 202948 | 402452 | |||||||
| openbravo | pg_default | public | m_productionline | 14986 | 29188 | 9 | 27755 | 1 | 20075088 | 3514769 | 4535926 |
| m_productionline(TOAST) | |||||||||||
| openbravo | pg_default | public | c_orderline | 10788 | 29559 | 13 | 12226 | 1444 | 4202458664 | 65631131 | 1584067675 |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | c_import_entry_archive | 4017 | 2925 | 1 | 93700 | 15145 | 2925 | ||
| c_import_entry_archive(TOAST) | 17490 | 15389 | 97145 | 506621 | |||||||
| openbravo | pg_default | public | prpass_pass_inst | 9892 | 17749 | 8496 | 3950 | 17 | 11066328 | 13180319 | 355888320 |
| prpass_pass_inst(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 8922 | 26173 | 72 | 4263 | 104586655 | 111387640 | ||
| fin_payment_schedule(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 4342 | 26051 | 58 | 4992 | 82 | 595746573 | 273712 | 283367 |
| fin_payment_scheduledetail(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 12443 | 1578 | 12443 | 75 | 388 | 370044 | ||
| last_stat_user_functions(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 3140 | 21875 | 1 | 8597 | 7 | 44207525 | 4426469 | 3917280 |
| fin_payment(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Upd | Upd(HOT) | Del | Vacuum | AutoVacuum | Analyze | AutoAnalyze |
|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_invoice | 125871 | 19037 | 1 | ||||
| c_invoice(TOAST) | ||||||||||
| openbravo | pg_default | public | m_storage_detail | 117058 | 66935 | 38 | 4 | 19 | ||
| m_storage_detail(TOAST) | ||||||||||
| openbravo | pg_default | public | m_stock_aux | 62898 | 47143 | 25450 | 197 | 264 | ||
| m_stock_aux(TOAST) | ||||||||||
| openbravo | pg_default | public | obmobc_logclient | 76788 | 1 | 1 | ||||
| obmobc_logclient(TOAST) | 2 | 1 | ||||||||
| openbravo | pg_default | pg_temp_11 | ad_context_info | 75392 | ||||||
| openbravo | pg_default | profile | last_stat_indexes | 1609 | 70992 | 160 | 46 | 23 | ||
| openbravo | pg_default | public | m_transaction | 47756 | 1275 | |||||
| m_transaction(TOAST) | ||||||||||
| openbravo | pg_default | public | c_import_entry | 12966 | 12917 | 139 | 234 | |||
| c_import_entry(TOAST) | 21329 | 46 | ||||||||
| openbravo | pg_default | profile | last_stat_tables | 3672 | 47 | 41451 | 160 | 46 | 23 | |
| openbravo | pg_default | pg_catalog | pg_statistic | 32889 | 31306 | 3 | ||||
| pg_statistic(TOAST) | 6503 | 11 | ||||||||
| openbravo | pg_default | public | ad_ep_instance_para | 34805 | 523 | 699 | ||||
| ad_ep_instance_para(TOAST) | ||||||||||
| openbravo | pg_default | public | c_orderline | 29559 | 12226 | 13 | ||||
| c_orderline(TOAST) | ||||||||||
| openbravo | pg_default | public | m_productionline | 29188 | 27755 | 9 | ||||
| m_productionline(TOAST) | ||||||||||
| openbravo | pg_default | public | fact_acct | 26035 | 3015 | |||||
| fact_acct(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment_schedule | 26173 | 4263 | 72 | ||||
| fin_payment_schedule(TOAST) | ||||||||||
| openbravo | pg_default | public | prpass_pass_inst | 17749 | 3950 | 8496 | ||||
| prpass_pass_inst(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 26051 | 4992 | 58 | ||||
| fin_payment_scheduledetail(TOAST) | ||||||||||
| openbravo | pg_default | pg_catalog | pg_class | 22902 | 22887 | 426 | 9 | 22 | ||
| openbravo | pg_default | public | fin_payment | 21875 | 8597 | 1 | ||||
| fin_payment(TOAST) | ||||||||||
| openbravo | pg_default | public | m_transaction_last | 19797 | 9 | 15 |
| DB | Tablespace | Schema | Table | Size | Growth | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | fact_acct | 31 GB | 40 MB | 31765 | 26035 | 3015 | |
| fact_acct(TOAST) | |||||||||
| openbravo | pg_default | public | c_orderline | 8683 MB | 17 MB | 10788 | 29559 | 13 | 12226 |
| c_orderline(TOAST) | |||||||||
| openbravo | pg_default | public | m_productionline | 7867 MB | 16 MB | 14986 | 29188 | 9 | 27755 |
| m_productionline(TOAST) | |||||||||
| openbravo | pg_default | public | c_order | 7778 MB | 14 MB | 4679 | 17392 | 5 | 10010 |
| c_order(TOAST) | |||||||||
| openbravo | pg_default | public | obmobc_logclient | 1412 MB | 11 MB | 88842 | 76788 | ||
| obmobc_logclient(TOAST) | 280 kB | 4 | 2 | ||||||
| openbravo | pg_default | public | fin_payment_schedule | 5109 MB | 7744 kB | 8922 | 26173 | 72 | 4263 |
| fin_payment_schedule(TOAST) | |||||||||
| openbravo | pg_default | public | c_invoiceline | 7428 MB | 6552 kB | 10036 | 2715 | 48 | 2161 |
| c_invoiceline(TOAST) | |||||||||
| openbravo | pg_default | public | fin_payment_scheduledetail | 2784 MB | 6416 kB | 4342 | 26051 | 58 | 4992 |
| fin_payment_scheduledetail(TOAST) | |||||||||
| openbravo | pg_default | public | m_inout | 4172 MB | 5384 kB | 4568 | 10832 | 5930 | |
| m_inout(TOAST) | 30 MB | 200 kB | 103 | 80 | |||||
| openbravo | pg_default | public | m_inoutline | 5979 MB | 5456 kB | 10413 | 2113 | 9 | 1891 |
| m_inoutline(TOAST) | |||||||||
| openbravo | pg_default | public | prpass_pass_inst_hist | 5786 MB | 4192 kB | 8496 | |||
| prpass_pass_inst_hist(TOAST) | |||||||||
| openbravo | pg_default | public | fin_finacc_transaction | 3425 MB | 3408 kB | 3491 | 16701 | 1 | 2980 |
| fin_finacc_transaction(TOAST) | |||||||||
| openbravo | pg_default | public | prpass_pass_trans_hist | 4817 MB | 2952 kB | 8446 | |||
| openbravo | pg_default | public | c_invoicetax | 2777 MB | 2424 kB | 4948 | 2859 | 20 | 2801 |
| c_invoicetax(TOAST) | |||||||||
| openbravo | pg_default | public | ad_audit_trail | 538 MB | 2048 kB | 5614 | |||
| ad_audit_trail(TOAST) | |||||||||
| openbravo | pg_default | public | prpass_timeslots_res | 262 MB | 944 kB | 2134 | 1211 | 915 | |
| prpass_timeslots_res(TOAST) | |||||||||
| openbravo | pg_default | public | m_productionplan | 1241 MB | 552 kB | 1158 | |||
| m_productionplan(TOAST) | |||||||||
| openbravo | pg_default | public | c_import_entry | 576 kB | 192 kB | 12966 | 12966 | 12917 | |
| c_import_entry(TOAST) | 24 kB | 8192 bytes | 21329 | 21329 | |||||
| openbravo | pg_default | pg_temp_5 | ad_context_info | 40 kB | 40 kB | 530 | 529 | ||
| openbravo | pg_default | public | m_product | 10 MB | 8192 bytes | 4 | 73 | 59 | |
| m_product(TOAST) | |||||||||
| DB | Tablespace | Schema | Table | Index | Scans | Blks | %Total |
|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | fin_payment_schedule | fin_payment_schedule_key | 104264637 | 418146516 | 3.80 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_orderline | 56823034 | 238051868 | 2.16 |
| openbravo | pg_default | public | c_invoice | c_invoice_key | 56809098 | 228216434 | 2.07 |
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_orderline | 56297995 | 225971982 | 2.05 |
| openbravo | pg_default | public | m_inout | m_inout_key | 55607595 | 222890450 | 2.03 |
| openbravo | pg_default | public | c_order | c_order_key | 53059790 | 212018287 | 1.93 |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 48670399 | 196136156 | 1.78 |
| openbravo | pg_default | public | c_orderline | c_orderline_key | 14440009 | 67870007 | 0.62 |
| openbravo | pg_default | public | c_orderline | c_orderline_product | 2348250 | 67358726 | 0.61 |
| openbravo | pg_default | public | prpass_pass_trans | prpass_pass_trans_inst | 13907267 | 57904037 | 0.53 |
| openbravo | pg_default | public | prpass_pass_inst | prpass_pass_inst_orderline | 13243815 | 57560450 | 0.52 |
| openbravo | pg_default | public | c_order | c_order_client_org_date_docno | 104974 | 55259184 | 0.50 |
| openbravo | pg_default | public | c_invoice | c_invoice_client_org_date_doc | 35036 | 27839158 | 0.25 |
| openbravo | pg_default | public | ad_treenode | ad_treenode_tree_node_un | 1107820 | 26465289 | 0.24 |
| openbravo | pg_default | public | m_product | m_product_key | 8649124 | 17412090 | 0.16 |
| openbravo | pg_default | public | fin_payment_detail | fin_payment_detail_key | 4350783 | 15113634 | 0.14 |
| openbravo | pg_default | public | fin_payment | fin_payment_key | 4347315 | 15103091 | 0.14 |
| openbravo | pg_default | public | m_product_trl | m_product_trl_product_langu_un | 13295134 | 13332129 | 0.12 |
| openbravo | pg_default | public | prpass_timeslots_res | prpass_tslots_res_date_idx | 3348283 | 13063526 | 0.12 |
| openbravo | pg_default | public | prpass_timeslots_exceptions | prpass_tslots_exc_timeslt_idx | 2806224 | 10954417 | 0.10 |
| DB | Tablespace | Schema | Table | Index | Scans | Blk Reads | %Total | Hits(%) |
|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_invoice | c_invoice_client_org_date_doc | 35036 | 5049152 | 0.98 | 81.86 |
| openbravo | pg_default | public | prpass_pass_inst | prpass_pass_inst_value | 4654 | 2686380 | 0.52 | 65.69 |
| openbravo | pg_default | public | c_order | c_order_client_org_date_docno | 104974 | 2684007 | 0.52 | 95.14 |
| openbravo | pg_default | public | fin_finacc_transaction | fin_finacc_tr_account_line | 19810 | 2464441 | 0.48 | 63.68 |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 48670399 | 2153661 | 0.42 | 98.90 |
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_orderline | 56297995 | 2112693 | 0.41 | 99.07 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_orderline | 56823034 | 2047880 | 0.40 | 99.14 |
| openbravo | pg_default | public | c_order | c_order_documentno_id | 3952 | 1213495 | 0.24 | 79.20 |
| openbravo | pg_default | public | m_inout | m_inout_key | 55607595 | 964457 | 0.19 | 99.57 |
| openbravo | pg_default | public | prpass_pass_trans | prpass_pass_trans_inst | 13907267 | 955972 | 0.19 | 98.35 |
| openbravo | pg_default | public | c_invoice | c_invoice_key | 56809098 | 820448 | 0.16 | 99.64 |
| openbravo | pg_default | public | c_order | c_order_key | 53059790 | 799551 | 0.16 | 99.62 |
| openbravo | pg_default | public | c_orderline | c_orderline_key | 14440009 | 618254 | 0.12 | 99.09 |
| openbravo | pg_default | public | fin_payment_schedule | fin_payment_schedule_key | 104264637 | 490946 | 0.10 | 99.88 |
| openbravo | pg_default | public | fact_acct | fact_acct_datebalanced | 6 | 441754 | 0.09 | 24.38 |
| openbravo | pg_default | public | fact_acct | fact_acct_account | 3520 | 367252 | 0.07 | 62.32 |
| openbravo | pg_default | public | prpass_pass_inst | prpass_pass_inst_product | 246 | 327258 | 0.06 | 87.59 |
| openbravo | pg_default | public | fin_payment_detail | fin_payment_detail_key | 4350783 | 304780 | 0.06 | 97.98 |
| openbravo | pg_default | public | prpass_pass_inst | prpass_pass_inst_orderline | 13243815 | 271536 | 0.05 | 99.53 |
| openbravo | pg_default | public | c_order | c_order_dateordered_id | 1101 | 256812 | 0.05 | 72.91 |
| DB | Tablespace | Schema | Table | Index | Index | Table | |||
|---|---|---|---|---|---|---|---|---|---|
| Size | Growth | Ins | Upd | Del | |||||
| openbravo | pg_default | public | prpass_pass_trans_hist | prpass_pass_trans_hist_vlo_ix | 796 MB | 796 MB | 8446 | ||
| openbravo | pg_default | public | prpass_pass_trans_hist | prpass_pass_trans_hist_ins_ix | 795 MB | 795 MB | 8446 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_part_ix | 701 MB | 701 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_ord_ix | 701 MB | 701 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_ol_ix | 701 MB | 701 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_prd_ix | 701 MB | 701 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_pos_ix | 602 MB | 602 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_trans_hist | prpass_pass_trans_hist_pos_ix | 589 MB | 589 MB | 8446 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_val_ix | 482 MB | 482 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_sta_ix | 267 MB | 267 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_unl_ix | 267 MB | 267 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_trs_ix | 66 MB | 66 MB | 8496 | ||
| openbravo | pg_default | public | fact_acct | fact_acct_key | 2713 MB | 34 MB | 31765 | 26035 | 3015 |
| openbravo | pg_default | public | fact_acct | fact_acct_record_id2 | 1726 MB | 14 MB | 21014 | 25493 | 2756 |
| openbravo | pg_default | public | fin_payment_scheduledetail | fin_pay_scheduledetail_or | 527 MB | 9776 kB | 4163 | 20802 | 58 |
| openbravo | pg_default | public | fact_acct | fact_acct_account | 5214 MB | 7256 kB | 25769 | 25583 | 2889 |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 914 MB | 4128 kB | 10788 | 17333 | 13 |
| openbravo | pg_default | public | c_invoice | c_invoice_key | 408 MB | 2192 kB | 4405 | 106834 | 1 |
| openbravo | pg_default | public | m_productionline | m_productionline_prodplan | 1165 MB | 1968 kB | 9079 | 892 | |
| openbravo | pg_default | public | c_invoice | c_invoice_client_org_date_doc | 946 MB | 1784 kB | 4405 | 106834 | 1 |
This table contains non-scanned indexes (during report period), ordered by number of DML operations on underlying tables. Constraint indexes are excluded.
| DB | Tablespaces | Schema | Table | Index | Index | Table | |||
|---|---|---|---|---|---|---|---|---|---|
| Size | Growth | Ins | Upd | Del | |||||
| openbravo | pg_default | public | c_import_entry | em_prres_organization_idx | 1384 kB | 12958 | 12958 | 12913 | |
| openbravo | pg_default | pg_catalog | pg_class | pg_class_tblspc_relfilenode_index | 320 kB | 139 | 7 | 130 | |
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_ord_ix | 701 MB | 701 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_ol_ix | 701 MB | 701 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_part_ix | 701 MB | 701 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_pos_ix | 602 MB | 602 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_prd_ix | 701 MB | 701 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_sta_ix | 267 MB | 267 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_unl_ix | 267 MB | 267 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_inst_hist | prpass_pass_inst_hist_val_ix | 482 MB | 482 MB | 8496 | ||
| openbravo | pg_default | public | prpass_pass_trans_hist | prpass_pass_trans_hist_ins_ix | 795 MB | 795 MB | 8446 | ||
| openbravo | pg_default | public | prpass_pass_trans_hist | prpass_pass_trans_hist_pos_ix | 589 MB | 589 MB | 8446 | ||
| openbravo | pg_default | public | prpass_pass_trans_hist | prpass_pass_trans_hist_vlo_ix | 796 MB | 796 MB | 8446 | ||
| openbravo | pg_default | public | prpass_timeslots_res | prpass_tslots_res_oline_idx | 54 MB | 168 kB | 223 | 131 | 97 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | ad_sequence_doc | 7157 | 12080.51 | 12080.41 | 1.688 | 1.688 |
| openbravo | public | c_order_post1 | 1365 | 7680.03 | 14.68 | 5.626 | 0.011 |
| openbravo | public | c_order_post | 1360 | 7679.74 | 0.05 | 5.647 | 0.000 |
| openbravo | public | c_order_post1 | 1360 | 7679.69 | 0.03 | 5.647 | 0.000 |
| openbravo | public | m_inout_create | 1166 | 5208.93 | 0.04 | 4.467 | 0.000 |
| openbravo | public | m_inout_create | 1081 | 5206.51 | 7.77 | 4.816 | 0.007 |
| openbravo | public | ad_extension_point_handler | 7706 | 2408.93 | 3.41 | 0.313 | 0.000 |
| openbravo | public | c_invoice_create | 1166 | 2360.28 | 8.30 | 2.024 | 0.007 |
| openbravo | public | c_invoice_post | 1260 | 2347.73 | 15.08 | 1.863 | 0.012 |
| openbravo | public | aprm_gen_paymentschedule_inv | 1210 | 2310.51 | 2309.63 | 1.910 | 1.909 |
| openbravo | public | cactl_calculate_consumption | 1633 | 710.50 | 710.48 | 0.435 | 0.435 |
| openbravo | public | to_char | 350007833 | 610.68 | 610.68 | 0.000 | 0.000 |
| openbravo | public | to_char | 284725184 | 407.17 | 407.17 | 0.000 | 0.000 |
| openbravo | public | to_char | 203678461 | 99.70 | 99.70 | 0.000 | 0.000 |
| openbravo | public | pricm_createproductprice | 5447 | 80.79 | 38.88 | 0.015 | 0.007 |
| openbravo | profile | take_sample | 23 | 70.39 | 0.01 | 3.060 | 0.001 |
| openbravo | profile | take_sample_subset | 23 | 70.38 | 0.14 | 3.060 | 0.006 |
| openbravo | profile | take_sample | 23 | 70.24 | 4.54 | 3.054 | 0.197 |
| openbravo | public | cactl_ep_before_order_price | 303 | 62.92 | 62.90 | 0.208 | 0.208 |
| openbravo | profile | dblink | 621 | 57.74 | 57.74 | 0.093 | 0.093 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | to_char | 350007833 | 610.68 | 610.68 | 0.000 | 0.000 |
| openbravo | public | to_char | 284725184 | 407.17 | 407.17 | 0.000 | 0.000 |
| openbravo | public | to_char | 203678461 | 99.70 | 99.70 | 0.000 | 0.000 |
| openbravo | public | to_char | 19319691 | 10.38 | 10.38 | 0.000 | 0.000 |
| openbravo | public | to_date | 16810999 | 44.87 | 44.87 | 0.000 | 0.000 |
| openbravo | public | to_number | 8680090 | 14.26 | 14.26 | 0.000 | 0.000 |
| openbravo | public | substract_days | 5695697 | 4.54 | 4.54 | 0.000 | 0.000 |
| openbravo | public | ad_istriggerenabled | 2046149 | 13.63 | 13.63 | 0.000 | 0.000 |
| openbravo | public | add_days | 1649416 | 2.15 | 2.15 | 0.000 | 0.000 |
| openbravo | public | to_date | 1198244 | 2.55 | 2.54 | 0.000 | 0.000 |
| openbravo | public | ad_isorgincluded | 1151298 | 14.01 | 14.01 | 0.000 | 0.000 |
| openbravo | public | uuid_generate_v4 | 652941 | 2.40 | 2.40 | 0.000 | 0.000 |
| openbravo | public | ad_org_isinnaturaltree | 471821 | 13.21 | 2.61 | 0.000 | 0.000 |
| openbravo | public | get_uuid | 217647 | 4.65 | 2.24 | 0.000 | 0.000 |
| openbravo | public | m_update_inventory | 116115 | 42.08 | 38.76 | 0.000 | 0.000 |
| openbravo | public | trunc | 114650 | 0.24 | 0.24 | 0.000 | 0.000 |
| openbravo | public | trunc | 114389 | 0.24 | 0.24 | 0.000 | 0.000 |
| openbravo | public | round | 89413 | 0.18 | 0.18 | 0.000 | 0.000 |
| openbravo | public | m_update_stockaux | 87218 | 15.24 | 14.19 | 0.000 | 0.000 |
| openbravo | public | obequals | 69478 | 0.29 | 0.29 | 0.000 | 0.000 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | pricm_productprice | 5515 | 81.00 | 0.14 | 0.015 | 0.000 |
| openbravo | public | m_productionline_trg | 44183 | 35.14 | 6.51 | 0.001 | 0.000 |
| openbravo | public | cactl_m_prodline_losses_trg | 14986 | 21.45 | 4.72 | 0.001 | 0.000 |
| openbravo | public | cactl_product_org | 43590 | 15.07 | 2.37 | 0.000 | 0.000 |
| openbravo | public | m_transaction_trg | 70238 | 14.80 | 7.90 | 0.000 | 0.000 |
| openbravo | public | aeatsii_invoice_trg | 133128 | 10.81 | 8.34 | 0.000 | 0.000 |
| openbravo | public | au_c_order_trg | 22092 | 10.75 | 10.42 | 0.000 | 0.000 |
| openbravo | public | c_orderline_trg2 | 40354 | 10.71 | 3.35 | 0.000 | 0.000 |
| openbravo | public | c_invoiceline_trg2 | 12799 | 7.70 | 2.90 | 0.001 | 0.000 |
| openbravo | public | c_invoice_trg | 133129 | 4.93 | 4.11 | 0.000 | 0.000 |
| openbravo | public | c_orderline2_trg | 40368 | 4.85 | 4.52 | 0.000 | 0.000 |
| openbravo | public | c_invoice_trg2 | 130276 | 3.11 | 1.83 | 0.000 | 0.000 |
| openbravo | public | m_requisitionorder_trg | 93 | 3.05 | 3.04 | 0.033 | 0.033 |
| openbravo | public | m_storage_detail_trg | 115591 | 2.62 | 1.94 | 0.000 | 0.000 |
| openbravo | public | c_invoicelinetax_trg | 12303 | 2.44 | 1.61 | 0.000 | 0.000 |
| openbravo | public | c_orderlinetax_trg | 12164 | 2.43 | 1.98 | 0.000 | 0.000 |
| openbravo | public | pricm_skipped_transaction_trg | 22482 | 2.30 | 2.21 | 0.000 | 0.000 |
| openbravo | public | c_orderline_trg | 40362 | 2.30 | 2.04 | 0.000 | 0.000 |
| openbravo | public | priuti_c_invoice_ref_trg | 130276 | 2.20 | 1.48 | 0.000 | 0.000 |
| openbravo | public | intr_c_orderline_trg | 40347 | 1.97 | 0.77 | 0.000 | 0.000 |
| DB | Tablespace | Schema | Table | Vacuum count | Autovacuum count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | ad_ep_instance_para | 523 | 34805 | 34805 | |||
| openbravo | pg_default | public | m_stock_aux | 197 | 25450 | 62898 | 25450 | 47143 | |
| openbravo | pg_default | profile | last_stat_tables | 160 | 41455 | 3672 | 41451 | 47 | |
| openbravo | pg_default | profile | last_stat_indexes | 160 | 71003 | 1609 | 70992 | ||
| openbravo | pg_default | profile | last_stat_user_functions | 160 | 12443 | 1578 | 12443 | 75 | |
| openbravo | pg_default | public | c_import_entry | 139 | 12966 | 12966 | 12917 | ||
| openbravo | pg_default | public | obre_reservation | 109 | 509 | 3415 | 508 | 11 | |
| openbravo | pg_default | public | ad_sequence | 94 | 13848 | 13711 | |||
| openbravo | pg_default | public | obpos_applications | 74 | 6903 | 6828 | |||
| openbravo | pg_default | public | fin_financial_account | 47 | 3379 | 3373 | |||
| openbravo | pg_default | public | obre_resource | 21 | 3895 | 3813 | |||
| openbravo | pg_default | pg_catalog | pg_class | 9 | 433 | 22902 | 426 | 22887 | |
| openbravo | pg_default | public | m_transaction_last | 9 | 3 | 19797 | |||
| openbravo | pg_default | public | m_storage_detail | 4 | 47 | 117058 | 38 | 66935 | |
| openbravo | pg_default | pg_catalog | pg_statistic | 3 | 32889 | 31306 | |||
| openbravo | pg_default | pg_catalog | pg_type | 2 | 434 | 430 | |||
| openbravo | pg_default | profile | last_stat_database | 2 | 88 | 88 | |||
| postgres | pg_global | pg_catalog | pg_shdepend | 1 | 188 | 192 | |||
| openbravo | pg_global | pg_catalog | pg_shdepend | 1 | 118 | 118 | |||
| openbravo | pg_default | pg_catalog | pg_attribute | 1 | 2582 | 2591 |
| DB | Tablespace | Schema | Table | Analyze count | Autoanalyze count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | ad_ep_instance_para | 699 | 34805 | 34805 | |||
| openbravo | pg_default | public | m_stock_aux | 264 | 25450 | 62898 | 25450 | 47143 | |
| openbravo | pg_default | public | c_import_entry | 234 | 12966 | 12966 | 12917 | ||
| openbravo | pg_default | public | ad_sequence | 135 | 13848 | 13711 | |||
| openbravo | pg_default | public | obpos_applications | 101 | 6903 | 6828 | |||
| openbravo | pg_default | public | obre_reservation | 75 | 509 | 3415 | 508 | 11 | |
| openbravo | pg_default | profile | last_stat_tables | 46 | 23 | 41455 | 3672 | 41451 | 47 |
| openbravo | pg_default | profile | last_stat_indexes | 46 | 23 | 71003 | 1609 | 70992 | |
| openbravo | pg_default | profile | last_stat_user_functions | 46 | 23 | 12443 | 1578 | 12443 | 75 |
| openbravo | pg_default | public | fin_financial_account | 51 | 3379 | 3373 | |||
| openbravo | pg_default | public | obre_resource | 40 | 3895 | 3813 | |||
| openbravo | pg_default | pg_catalog | pg_class | 22 | 433 | 22902 | 426 | 22887 | |
| openbravo | pg_default | profile | last_stat_tablespaces | 20 | 42 | 42 | |||
| openbravo | pg_default | public | m_storage_detail | 19 | 47 | 117058 | 38 | 66935 | |
| openbravo | pg_default | public | m_transaction_last | 15 | 3 | 19797 | |||
| openbravo | pg_default | public | ad_session | 13 | 153 | 9525 | 8730 | ||
| openbravo | pg_default | public | c_bpartner | 12 | 2 | 12276 | 11538 | ||
| openbravo | pg_default | public | ad_process_request | 1 | 5 | 158 | 597 | 184 | 555 |
| openbravo | pg_default | pg_catalog | pg_type | 5 | 434 | 430 | |||
| postgres | pg_global | pg_catalog | pg_shdepend | 3 | 188 | 192 |
| DB | Tablespace | Schema | Table | Index | ~Vacuum bytes | Vacuum cnt | Autovacuum cnt | IX size | Relsize |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | m_stock_aux | m_stock_aux_aux_id | 494 MB | 197 | 2569 kB | 4400 kB | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_timestamp | 292 MB | 1 | 292 MB | 1412 MB | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_pk | 242 MB | 1 | 242 MB | 1412 MB | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_cache | 210 MB | 1 | 210 MB | 1412 MB | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_term_date | 202 MB | 1 | 202 MB | 1412 MB | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_context | 188 MB | 1 | 188 MB | 1412 MB | |
| openbravo | pg_default | public | c_import_entry | em_prres_organization_idx | 188 MB | 139 | 1384 kB | 1189 kB | |
| openbravo | pg_default | public | ad_ep_instance_para | ad_ep_instance_para_key | 176 MB | 523 | 344 kB | 32 kB | |
| openbravo | pg_default | public | m_stock_aux | m_stock_aux_storage_detail_id | 131 MB | 184 | 728 kB | 4400 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_key | 129 MB | 139 | 952 kB | 1189 kB | |
| openbravo | pg_default | public | c_import_entry | em_prres_typeofdata_idx | 123 MB | 139 | 904 kB | 1189 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_type_status | 116 MB | 139 | 856 kB | 1189 kB | |
| openbravo | pg_default | public | m_stock_aux | m_stock_aux_key | 111 MB | 184 | 616 kB | 4400 kB | |
| openbravo | pg_default | public | c_import_entry | em_obpos_application_fk | 106 MB | 139 | 784 kB | 1189 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_idx | 92 MB | 139 | 680 kB | 1189 kB | |
| openbravo | pg_default | profile | last_stat_indexes | pk_last_stat_indexes | 85 MB | 157 | 552 kB | 2040 kB | |
| openbravo | pg_default | public | m_storage_detail | m_storage_detail_un | 80 MB | 4 | 20 MB | 29 MB | |
| openbravo | pg_default | public | m_storage_detail | m_storage_detail_uom | 59 MB | 4 | 15 MB | 29 MB | |
| openbravo | pg_default | public | m_storage_detail | m_storagedet_qtyorderonhand | 54 MB | 4 | 13 MB | 29 MB | |
| openbravo | pg_default | public | m_storage_detail | m_storage_detail_locator | 54 MB | 4 | 13 MB | 29 MB |
Data in this section is not differential. This data is valid for last report sample only.
| DB | Schema | Table | Live | Dead | %Dead | Last AV | Size |
|---|---|---|---|---|---|---|---|
| openbravo | public | prpass_timeslots_res | 719877 | 136524 | 15 | 2026-04-30 12:07:18.698105+01 | 262 MB |
| openbravo | pg_toast | pg_toast_2619 | 2498 | 382 | 13 | 2026-07-17 22:32:20.771164+01 | 7288 kB |
| openbravo | public | c_invoice | 7030574 | 971264 | 12 | 2026-07-08 00:23:08.546646+01 | 7098 MB |
| openbravo | pg_toast | pg_toast_232469 | 13517 | 1930 | 12 | 2026-05-19 02:38:47.391039+01 | 30 MB |
| openbravo | public | m_requisitionline | 318510 | 35608 | 10 | 2026-07-06 12:22:50.3815+01 | 184 MB |
| openbravo | public | m_product | 15686 | 1773 | 10 | 2026-02-20 19:44:18.669967+00 | 10 MB |
| openbravo | public | fin_finacc_transaction | 6610180 | 686115 | 9 | 2026-04-02 14:41:49.577329+01 | 3425 MB |
| openbravo | pg_catalog | pg_statistic | 10764 | 1064 | 8 | 2026-07-17 23:48:22.899922+01 | 7040 kB |
| openbravo | public | c_order | 7287483 | 680001 | 8 | 7778 MB | |
| openbravo | public | fin_payment_scheduledetail | 7274198 | 525236 | 6 | 2026-03-09 13:29:49.774124+00 | 2784 MB |
| openbravo | public | fact_acct | 38053680 | 2790812 | 6 | 2025-07-31 23:28:10.407953+01 | 31 GB |
| openbravo | public | c_orderline | 14419128 | 771896 | 5 | 8683 MB | |
| openbravo | public | prpass_pass_inst | 443107 | 23943 | 5 | 2026-07-16 21:52:27.999093+01 | 6280 MB |
| openbravo | profile | sample_stat_tables | 27296 | 1312 | 4 | 2026-07-17 17:00:47.297023+01 | 8672 kB |
| openbravo | pg_catalog | pg_attribute | 37235 | 1440 | 3 | 2026-07-17 16:18:46.858639+01 | 6840 kB |
| openbravo | public | fin_payment_schedule | 14178166 | 465830 | 3 | 5109 MB | |
| openbravo | public | m_inout | 7261199 | 254830 | 3 | 2025-10-20 23:54:32.431835+01 | 4172 MB |
| openbravo | public | obmobc_logclient | 2599131 | 80243 | 2 | 2025-12-16 23:13:25.786307+00 | 1412 MB |
| openbravo | public | m_productionline | 20088127 | 217701 | 1 | 7867 MB | |
| openbravo | public | prpass_pass_trans | 552859 | 8446 | 1 | 2026-07-16 21:39:42.083421+01 | 5152 MB |
Table shows modified tuples statistics since last analyze.
Data in this section is not differential. This data is valid for last report sample only.
| DB | Schema | Table | Live | Dead | Mod | %Mod | Last AA | Size |
|---|---|---|---|---|---|---|---|---|
| openbravo | pg_catalog | pg_statistic | 10764 | 1064 | 9800022 | 82854 | 7040 kB | |
| openbravo | public | ad_audit_trail | 2130770 | 90 | 193120 | 9 | 2026-06-21 20:32:38.637677+01 | 538 MB |
| openbravo | public | m_productionline | 20088127 | 217701 | 1797247 | 8 | 2026-04-18 16:29:40.193815+01 | 7867 MB |
| openbravo | public | prpass_pass_inst | 443107 | 23943 | 38385 | 8 | 2026-07-16 20:25:05.972264+01 | 6280 MB |
| openbravo | pg_catalog | pg_attribute | 37235 | 1440 | 2870 | 7 | 2026-07-17 16:19:45.769483+01 | 6840 kB |
| openbravo | public | fin_payment_schedule | 14178166 | 465830 | 1128545 | 7 | 2026-04-22 11:37:34.369148+01 | 5109 MB |
| openbravo | public | prpass_pass_inst_hist | 12365718 | 0 | 968530 | 7 | 2026-07-16 19:56:26.433478+01 | 5786 MB |
| openbravo | public | m_product | 15686 | 1773 | 1201 | 6 | 2026-07-13 10:43:57.196489+01 | 10 MB |
| openbravo | public | fin_finacc_transaction | 6610180 | 686115 | 367899 | 5 | 2026-06-27 12:53:00.341557+01 | 3425 MB |
| openbravo | public | c_invoicetax | 8736695 | 31972 | 473645 | 5 | 2026-02-09 12:46:03.970918+00 | 2777 MB |
| openbravo | public | c_order | 7287483 | 680001 | 420761 | 5 | 2026-06-29 09:41:55.68684+01 | 7778 MB |
| openbravo | public | prpass_pass_trans_hist | 13991265 | 0 | 772330 | 5 | 2026-07-16 20:00:37.093696+01 | 4817 MB |
| openbravo | public | c_invoiceline | 14256002 | 49964 | 608155 | 4 | 2026-02-28 09:04:55.209925+00 | 7428 MB |
| openbravo | public | m_inoutline | 14258924 | 29169 | 582147 | 4 | 2026-03-06 11:59:32.517041+00 | 5979 MB |
| openbravo | public | m_productionplan | 3453294 | 101 | 103774 | 3 | 2026-02-28 13:31:59.297829+00 | 1241 MB |
| openbravo | public | prpass_pass_trans | 552859 | 8446 | 18312 | 3 | 2026-07-16 21:03:29.20469+01 | 5152 MB |
| openbravo | public | fin_payment_scheduledetail | 7274198 | 525236 | 231166 | 2 | 2026-07-05 13:15:29.243565+01 | 2784 MB |
| openbravo | public | c_invoice | 7030574 | 971264 | 232862 | 2 | 2026-07-16 12:28:46.256497+01 | 7098 MB |
| openbravo | public | fact_acct | 38053680 | 2790812 | 999719 | 2 | 2026-06-25 13:36:17.490096+01 | 31 GB |
| openbravo | public | c_orderline | 14419128 | 771896 | 439625 | 2 | 2026-07-06 00:03:35.926283+01 | 8683 MB |
| Defined settings | ||||
|---|---|---|---|---|
| Setting | reset_val | Unit | Source | Notes |
| archive_command | /bin/true | /var/lib/postgresql/10/main/postgresql.auto.conf:3 | ||
| archive_mode | on | /etc/postgresql/10/main/postgresql.conf:217 | ||
| checkpoint_completion_target | 0.9 | /etc/postgresql/10/main/postgresql.conf:211 | ||
| client_encoding | UTF8 | |||
| cluster_name | 10/main | /etc/postgresql/10/main/postgresql.conf:477 | ||
| config_file | /etc/postgresql/10/main/postgresql.conf | |||
| data_checksums | on | |||
| data_directory | /var/lib/postgresql/10/main | |||
| DateStyle | ISO, DMY | /etc/postgresql/10/main/postgresql.conf:566 | ||
| default_text_search_config | pg_catalog.spanish | /etc/postgresql/10/main/postgresql.conf:588 | ||
| effective_cache_size | 11010048 | 8kB | /etc/postgresql/10/main/postgresql.conf:315 | |
| effective_io_concurrency | 200 | /etc/postgresql/10/main/postgresql.conf:164 | ||
| external_pid_file | /var/run/postgresql/10-main.pid | /etc/postgresql/10/main/postgresql.conf:49 | ||
| hba_file | /etc/postgresql/10/main/pg_hba.conf | |||
| ident_file | /etc/postgresql/10/main/pg_ident.conf | |||
| lc_collate | es_ES.UTF-8 | |||
| lc_ctype | es_ES.UTF-8 | |||
| lc_messages | en_US.UTF-8 | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:11 | ||
| lc_monetary | es_ES.UTF-8 | /etc/postgresql/10/main/postgresql.conf:583 | ||
| lc_numeric | en_US.UTF-8 | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:38 | ||
| lc_time | es_ES.UTF-8 | /etc/postgresql/10/main/postgresql.conf:585 | ||
| listen_addresses | * | /etc/postgresql/10/main/postgresql.conf:59 | ||
| log_autovacuum_min_duration | 0 | ms | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:10 | |
| log_checkpoints | on | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:1 | ||
| log_connections | on | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:2 | ||
| log_disconnections | on | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:3 | ||
| log_line_prefix | %t [%p]:[%l-1] db=%d,user=%u,app=%a,client=%h | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:5 | ||
| log_lock_waits | on | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:6 | ||
| log_min_duration_statement | 5000 | ms | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:35 | |
| log_temp_files | 0 | kB | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:8 | |
| log_timezone | localtime | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:22 | ||
| maintenance_work_mem | 2097152 | kB | /etc/postgresql/10/main/postgresql.conf:123 | |
| max_connections | 500 | /etc/postgresql/10/main/postgresql.conf:64 | ||
| max_locks_per_transaction | 128 | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:17 | ||
| max_parallel_workers | 16 | /etc/postgresql/10/main/postgresql.conf:167 | ||
| max_parallel_workers_per_gather | 4 | /etc/postgresql/10/main/postgresql.conf:166 | ||
| max_stack_depth | 2048 | kB | ||
| max_standby_streaming_delay | 10800000 | ms | /etc/postgresql/10/main/postgresql.conf:264 | |
| max_wal_size | 57344 | MB | /etc/postgresql/10/main/postgresql.conf:209 | |
| max_worker_processes | 16 | /etc/postgresql/10/main/postgresql.conf:165 | ||
| min_wal_size | 1024 | MB | /etc/postgresql/10/main/postgresql.conf:210 | |
| pg_conf_load_time | 2026-05-19 04:01:11.408995+01 | |||
| pg_postmaster_start_time | 2026-05-19 04:01:11.687059+01 | |||
| pg_stat_statements.max | 10000 | /etc/postgresql/10/main/postgresql.conf:660 | ||
| pg_stat_statements.track | all | /etc/postgresql/10/main/postgresql.conf:661 | ||
| random_page_cost | 1.1 | /etc/postgresql/10/main/postgresql.conf:307 | ||
| server_encoding | UTF8 | |||
| shared_buffers | 3670016 | 8kB | /etc/postgresql/10/main/postgresql.conf:113 | |
| shared_preload_libraries | $libdir/pg_stat_statements | /etc/postgresql/10/main/postgresql.conf:659 | ||
| ssl | on | /etc/postgresql/10/main/postgresql.conf:79 | ||
| ssl_cert_file | /etc/ssl/certs/ssl-cert-snakeoil.pem | /etc/postgresql/10/main/postgresql.conf:84 | ||
| ssl_key_file | /etc/ssl/private/ssl-cert-snakeoil.key | /etc/postgresql/10/main/postgresql.conf:85 | ||
| stats_temp_directory | /var/run/postgresql/10-main.pg_stat_tmp | /etc/postgresql/10/main/postgresql.conf:493 | ||
| TimeZone | localtime | /etc/postgresql/10/main/conf.d/01-openbravo-standard-postgres10.conf:23 | ||
| timezone_abbreviations | Default | |||
| track_functions | all | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:9 | ||
| version | PostgreSQL 10.23 (Ubuntu 10.23-0ubuntu0.18.04.2) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit | |||
| wal_buffers | 2048 | 8kB | /etc/postgresql/10/main/postgresql.conf:198 | |
| wal_keep_segments | 2500 | /etc/postgresql/10/main/postgresql.conf:237 | ||
| wal_receiver_timeout | 601000 | ms | /etc/postgresql/10/main/postgresql.conf:271 | |
| wal_sender_timeout | 0 | ms | /etc/postgresql/10/main/postgresql.conf:238 | |
| work_mem | 36700 | kB | /etc/postgresql/10/main/postgresql.conf:122 | |
| Default settings | ||||
| Setting | reset_val | Unit | Source | Notes |
| allow_in_place_tablespaces | off | |||
| allow_system_table_mods | off | |||
| application_name | ||||
| archive_timeout | 0 | s | ||
| array_nulls | on | |||
| authentication_timeout | 60 | s | ||
| autovacuum | on | |||
| autovacuum_analyze_scale_factor | 0.1 | |||
| autovacuum_analyze_threshold | 50 | |||
| autovacuum_freeze_max_age | 200000000 | |||
| autovacuum_max_workers | 3 | |||
| autovacuum_multixact_freeze_max_age | 400000000 | |||
| autovacuum_naptime | 60 | s | ||
| autovacuum_vacuum_cost_delay | 20 | ms | ||
| autovacuum_vacuum_cost_limit | -1 | |||
| autovacuum_vacuum_scale_factor | 0.2 | |||
| autovacuum_vacuum_threshold | 50 | |||
| autovacuum_work_mem | -1 | kB | ||
| backend_flush_after | 0 | 8kB | ||
| backslash_quote | safe_encoding | |||
| bgwriter_delay | 200 | ms | ||
| bgwriter_flush_after | 64 | 8kB | ||
| bgwriter_lru_maxpages | 100 | |||
| bgwriter_lru_multiplier | 2 | |||
| block_size | 8192 | |||
| bonjour | off | |||
| bonjour_name | ||||
| bytea_output | hex | |||
| check_function_bodies | on | |||
| checkpoint_flush_after | 32 | 8kB | ||
| checkpoint_timeout | 300 | s | ||
| checkpoint_warning | 30 | s | ||
| client_min_messages | notice | |||
| commit_delay | 0 | |||
| commit_siblings | 5 | |||
| constraint_exclusion | partition | |||
| cpu_index_tuple_cost | 0.005 | |||
| cpu_operator_cost | 0.0025 | |||
| cpu_tuple_cost | 0.01 | |||
| cursor_tuple_fraction | 0.1 | |||
| data_sync_retry | off | |||
| db_user_namespace | off | |||
| deadlock_timeout | 1000 | ms | ||
| debug_assertions | off | |||
| debug_pretty_print | on | |||
| debug_print_parse | off | |||
| debug_print_plan | off | |||
| debug_print_rewritten | off | |||
| default_statistics_target | 100 | /etc/postgresql/10/main/postgresql.conf:329 | ||
| default_tablespace | ||||
| default_transaction_deferrable | off | |||
| default_transaction_isolation | read committed | |||
| default_transaction_read_only | off | |||
| default_with_oids | off | |||
| dynamic_library_path | $libdir | |||
| dynamic_shared_memory_type | posix | /etc/postgresql/10/main/postgresql.conf:127 | ||
| enable_bitmapscan | on | |||
| enable_gathermerge | on | |||
| enable_hashagg | on | |||
| enable_hashjoin | on | |||
| enable_indexonlyscan | on | |||
| enable_indexscan | on | |||
| enable_material | on | |||
| enable_mergejoin | on | |||
| enable_nestloop | on | |||
| enable_seqscan | on | |||
| enable_sort | on | |||
| enable_tidscan | on | |||
| escape_string_warning | on | |||
| event_source | PostgreSQL | |||
| exit_on_error | off | |||
| extra_float_digits | 0 | |||
| force_parallel_mode | off | |||
| from_collapse_limit | 8 | |||
| fsync | on | |||
| full_page_writes | on | |||
| geqo | on | |||
| geqo_effort | 5 | |||
| geqo_generations | 0 | |||
| geqo_pool_size | 0 | |||
| geqo_seed | 0 | |||
| geqo_selection_bias | 2 | |||
| geqo_threshold | 12 | |||
| gin_fuzzy_search_limit | 0 | |||
| gin_pending_list_limit | 4096 | kB | ||
| hot_standby | on | /etc/postgresql/10/main/postgresql.conf:259 | ||
| hot_standby_feedback | off | |||
| huge_pages | try | |||
| idle_in_transaction_session_timeout | 0 | ms | ||
| ignore_checksum_failure | off | |||
| ignore_system_indexes | off | |||
| integer_datetimes | on | |||
| IntervalStyle | postgres | |||
| join_collapse_limit | 8 | |||
| krb_caseins_users | off | |||
| krb_server_keyfile | FILE:/etc/postgresql-common/krb5.keytab | |||
| local_preload_libraries | ||||
| lock_timeout | 0 | ms | ||
| lo_compat_privileges | off | |||
| log_destination | stderr | |||
| log_directory | log | |||
| log_duration | off | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:4 | ||
| log_error_verbosity | default | |||
| log_executor_stats | off | |||
| log_file_mode | 384 | |||
| log_filename | postgresql-%Y-%m-%d_%H%M%S.log | |||
| logging_collector | off | |||
| log_hostname | off | |||
| log_min_error_statement | error | |||
| log_min_messages | warning | |||
| log_parser_stats | off | |||
| log_planner_stats | off | |||
| log_replication_commands | off | |||
| log_rotation_age | 1440 | min | ||
| log_rotation_size | 10240 | kB | ||
| log_statement | none | /etc/postgresql/10/main/conf.d/09-pgbadger.conf:7 | ||
| log_statement_stats | off | |||
| log_truncate_on_rotation | off | |||
| max_files_per_process | 1000 | |||
| max_function_args | 100 | |||
| max_identifier_length | 63 | |||
| max_index_keys | 32 | |||
| max_logical_replication_workers | 4 | |||
| max_pred_locks_per_page | 2 | |||
| max_pred_locks_per_relation | -2 | |||
| max_pred_locks_per_transaction | 64 | |||
| max_prepared_transactions | 0 | |||
| max_replication_slots | 10 | |||
| max_standby_archive_delay | 30000 | ms | ||
| max_sync_workers_per_subscription | 2 | |||
| max_wal_senders | 10 | /etc/postgresql/10/main/postgresql.conf:235 | ||
| min_parallel_index_scan_size | 64 | 8kB | ||
| min_parallel_table_scan_size | 1024 | 8kB | ||
| old_snapshot_threshold | -1 | min | ||
| operator_precedence_warning | off | |||
| parallel_setup_cost | 1000 | |||
| parallel_tuple_cost | 0.1 | |||
| password_encryption | md5 | |||
| pg_profile.topn | 20 | |||
| pg_stat_statements.save | on | |||
| pg_stat_statements.track_utility | on | |||
| port | 5432 | /etc/postgresql/10/main/postgresql.conf:63 | ||
| post_auth_delay | 0 | s | ||
| pre_auth_delay | 0 | s | ||
| quote_all_identifiers | off | |||
| replacement_sort_tuples | 150000 | |||
| restart_after_crash | on | |||
| row_security | on | |||
| search_path | "$user", public | |||
| segment_size | 131072 | 8kB | ||
| seq_page_cost | 1 | |||
| server_version | 10.23 (Ubuntu 10.23-0ubuntu0.18.04.2) | |||
| server_version_num | 100023 | |||
| session_preload_libraries | ||||
| session_replication_role | origin | |||
| ssl_ca_file | ||||
| ssl_ciphers | HIGH:MEDIUM:+3DES:!aNULL | |||
| ssl_crl_file | ||||
| ssl_dh_params_file | ||||
| ssl_ecdh_curve | prime256v1 | |||
| ssl_prefer_server_ciphers | on | |||
| standard_conforming_strings | on | |||
| statement_timeout | 0 | ms | ||
| superuser_reserved_connections | 3 | |||
| synchronize_seqscans | on | |||
| synchronous_commit | on | |||
| synchronous_standby_names | ||||
| syslog_facility | local0 | |||
| syslog_ident | postgres | |||
| syslog_sequence_numbers | on | |||
| syslog_split_messages | on | |||
| system_identifier | 7195940715332384199 | |||
| tcp_keepalives_count | 0 | |||
| tcp_keepalives_idle | 0 | s | ||
| tcp_keepalives_interval | 0 | s | ||
| temp_buffers | 1024 | 8kB | ||
| temp_file_limit | -1 | kB | ||
| temp_tablespaces | ||||
| trace_notify | off | |||
| trace_recovery_messages | log | |||
| trace_sort | off | |||
| track_activities | on | |||
| track_activity_query_size | 1024 | |||
| track_commit_timestamp | off | |||
| track_counts | on | |||
| track_io_timing | off | |||
| transaction_deferrable | off | |||
| transaction_isolation | default | |||
| transaction_read_only | off | |||
| transform_null_equals | off | |||
| unix_socket_directories | /var/run/postgresql | /etc/postgresql/10/main/postgresql.conf:66 | ||
| unix_socket_group | ||||
| unix_socket_permissions | 511 | |||
| update_process_title | on | |||
| vacuum_cost_delay | 0 | ms | ||
| vacuum_cost_limit | 200 | |||
| vacuum_cost_page_dirty | 20 | |||
| vacuum_cost_page_hit | 1 | |||
| vacuum_cost_page_miss | 10 | |||
| vacuum_defer_cleanup_age | 0 | |||
| vacuum_freeze_min_age | 50000000 | |||
| vacuum_freeze_table_age | 150000000 | |||
| vacuum_multixact_freeze_min_age | 5000000 | |||
| vacuum_multixact_freeze_table_age | 150000000 | |||
| wal_block_size | 8192 | |||
| wal_compression | off | |||
| wal_consistency_checking | ||||
| wal_level | replica | /etc/postgresql/10/main/postgresql.conf:180 | ||
| wal_log_hints | off | |||
| wal_receiver_status_interval | 10 | s | ||
| wal_retrieve_retry_interval | 5000 | ms | ||
| wal_segment_size | 2048 | 8kB | ||
| wal_sync_method | fdatasync | |||
| wal_writer_delay | 200 | ms | ||
| wal_writer_flush_after | 128 | 8kB | ||
| xmlbinary | base64 | |||
| xmloption | content | |||
| zero_damaged_pages | off | |||