pg_profile version 0.3.6
Server name: local
Report interval: 2026-07-15 04:00:02+01 - 2026-07-16 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 | 1154063 | 6117 | 96.08 | 352617800 | 8643797036 | 22346629581 | 8459709260 | 962517 | 627471 | 721822 | 5928 MB | 167 | 290 GB | 403 MB | |
| postgres | 11707 | 99.16 | 5562 | 652884 | 1905161 | 348336 | 7 | 6391 kB | |||||||
| Total | 1165770 | 6117 | 96.08 | 352623362 | 8644449920 | 22348534742 | 8460057596 | 962517 | 627478 | 721822 | 5928 MB | 167 | 290 GB | 403 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 | 17142056 | 27343.87 | 214.85 | 9271192240 | 26535677 | 2312662 | 2070 | 545635 | 759006 | 2314 | 59480 | |||
| postgres | 5612 | 8.70 | 86741 | 345 | ||||||||||
| template1 | 6348 | 8.63 | 7176 | 276 | ||||||||||
| Total | 17154016 | 27361.19 | 214.85 | 9271286157 | 26535677 | 2312662 | 2070 | 545635 | 759006 | 2314 | 60101 | |||
| Metric | Value |
|---|---|
| Scheduled checkpoints | 276 |
| Requested checkpoints | |
| Checkpoint write time (s) | 48200.81 |
| Checkpoint sync time (s) | 23.57 |
| Checkpoints buffers written | 1075795 |
| Background buffers written | 470525 |
| Backend buffers written | 202667 |
| Backend fsync count | |
| Bgwriter interrupts (too many buffers) | 2859 |
| Number of buffers allocated | 166155361 |
| WAL generated | 10 GB |
| WAL segments archived | 665 |
| WAL segments archive failed |
| Tablespace | Path | Size | Growth |
|---|---|---|---|
| pg_default | 290 GB | 403 MB | |
| pg_global | 1014 kB |
| Query ID | Database | Exec (s) | %Total | Rows | Execution times (ms) | Executions | |||
|---|---|---|---|---|---|---|---|---|---|
| Mean | Min | Max | StdErr | ||||||
[9603f2b6] | openbravo | 2720.95 | 9.94 | 101221 | 608.986 | 257.538 | 865.778 | 30.842 | 4468 |
[5b93a467] | openbravo | 2712.09 | 9.91 | 19652.824 | 16507.024 | 72268.792 | 7092.025 | 138 | |
[84cd185c] | openbravo | 1754.66 | 6.41 | 1548 | 23395.435 | 6529.571 | 122865.010 | 25178.163 | 75 |
[e0869ab2] | openbravo | 1211.37 | 4.43 | 8778.051 | 7650.664 | 13246.247 | 1497.657 | 138 | |
[4f62fc29] | openbravo | 1189.22 | 4.35 | 44045.124 | 42601.855 | 46281.078 | 998.206 | 27 | |
[d917b591] | openbravo | 963.50 | 3.52 | 494 | 43795.330 | 42647.534 | 45225.512 | 593.857 | 22 |
[c4153bc0] | openbravo | 796.02 | 2.91 | 3099691 | 1985.075 | 207.547 | 6843.388 | 1283.426 | 401 |
[e11c57bb] | openbravo | 733.16 | 2.68 | 43127.290 | 41224.760 | 45175.250 | 1013.789 | 17 | |
[a6742d25] | openbravo | 723.73 | 2.65 | 1179444 | 11.939 | 0.023 | 2200.607 | 18.011 | 60618 |
[fb2a3095] | openbravo | 599.39 | 2.19 | 4757.026 | 4256.098 | 17048.496 | 1183.398 | 126 | |
[f51c7e38] | openbravo | 378.90 | 1.38 | 1192 | 19941.909 | 6899.516 | 50823.563 | 15467.779 | 19 |
[cd9c0fd2] | openbravo | 362.28 | 1.32 | 6060 | 362275.391 | 362275.391 | 362275.391 | 1 | |
[7318d810] | openbravo | 349.55 | 1.28 | 38003019 | 349545.627 | 349545.627 | 349545.627 | 1 | |
[7d7d1050] | openbravo | 349.50 | 1.28 | 409 | 854.530 | 681.130 | 14597.254 | 869.208 | 409 |
[2266d068] | openbravo | 270.51 | 0.99 | 1143 | 2129.989 | 22.317 | 29860.579 | 4441.904 | 127 |
[daf1066c] | openbravo | 237.23 | 0.87 | 967 | 245.328 | 25.221 | 6072.678 | 546.261 | 967 |
[464f8019] | openbravo | 202.93 | 0.74 | 33 | 6149.259 | 5792.410 | 6964.767 | 260.956 | 33 |
[9dd2baff] | openbravo | 202.20 | 0.74 | 50 | 13480.303 | 6313.156 | 41123.475 | 13725.429 | 15 |
[bae859d8] | openbravo | 192.31 | 0.70 | 1335 | 1282.093 | 22.085 | 14005.944 | 3015.070 | 150 |
[94eb716f] | openbravo | 185.23 | 0.68 | 156 | 6615.350 | 4397.962 | 11289.720 | 1522.844 | 28 |
| Query ID | Database | Executions | %Total | Rows | Mean(ms) | Min(ms) | Max(ms) | StdErr(ms) | Elapsed(s) |
|---|---|---|---|---|---|---|---|---|---|
[263f5b0b] | openbravo | 1164062 | 6.79 | 602712 | 0.003 | 0.001 | 11.023 | 0.011 | 2.9 |
[fc9c6197] | openbravo | 1059110 | 6.17 | 1059110 | 0.010 | 0.008 | 8.298 | 0.010 | 10.8 |
[6df21622] | openbravo | 667641 | 3.89 | 667641 | 0.003 | 0.002 | 1.370 | 0.004 | 2.0 |
[d2788d4] | openbravo | 597467 | 3.48 | 597467 | 0.003 | 0.001 | 1.072 | 0.004 | 1.7 |
[aada7118] | openbravo | 333483 | 1.94 | 12132 | 0.010 | 0.003 | 11.608 | 0.031 | 3.3 |
[6f9b1a85] | openbravo | 297272 | 1.73 | 0.001 | 0.000 | 0.245 | 0.001 | 0.2 | |
[2049516b] | openbravo | 292916 | 1.71 | 0.001 | 0.000 | 0.883 | 0.002 | 0.2 | |
[1c1c8a81] | openbravo | 199516 | 1.16 | 199516 | 0.003 | 0.002 | 0.798 | 0.004 | 0.6 |
[c7e884e0] | openbravo | 186667 | 1.09 | 186667 | 0.004 | 0.002 | 0.852 | 0.004 | 0.7 |
[6d0d7fc] | openbravo | 185198 | 1.08 | 185198 | 0.005 | 0.002 | 0.940 | 0.005 | 1.0 |
[2b8e321f] | openbravo | 183691 | 1.07 | 183691 | 0.006 | 0.003 | 9.465 | 0.023 | 1.1 |
[d9433e44] | openbravo | 170715 | 1.00 | 170715 | 0.003 | 0.002 | 0.796 | 0.003 | 0.5 |
[30f21dca] | openbravo | 144992 | 0.85 | 144992 | 0.257 | 0.204 | 8.557 | 0.071 | 37.2 |
[a5716dbe] | openbravo | 144992 | 0.85 | 144992 | 0.234 | 0.204 | 5.388 | 0.058 | 33.9 |
[5d6197e1] | openbravo | 131830 | 0.77 | 131718 | 0.007 | 0.004 | 1.016 | 0.006 | 0.9 |
[3081048d] | openbravo | 113479 | 0.66 | 113479 | 0.004 | 0.002 | 0.396 | 0.003 | 0.5 |
[2b7ebfcc] | openbravo | 110659 | 0.65 | 110659 | 0.010 | 0.007 | 1.571 | 0.008 | 1.1 |
[588b10e0] | openbravo | 103411 | 0.60 | 0.002 | 0.001 | 0.417 | 0.002 | 0.2 | |
[413ce6da] | openbravo | 98146 | 0.57 | 98146 | 0.020 | 0.006 | 0.648 | 0.012 | 2.0 |
[b86e6a95] | openbravo | 86021 | 0.50 | 86021 | 0.002 | 0.001 | 1.058 | 0.004 | 0.1 |
| Query ID | Database | blks fetched | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[5b93a467] | openbravo | 1485376753 | 16.02 | 94.94 | 2712.1 | 138 | |
[a6742d25] | openbravo | 890954851 | 9.61 | 99.92 | 723.7 | 1179444 | 60618 |
[e0869ab2] | openbravo | 660657097 | 7.13 | 97.77 | 1211.4 | 138 | |
[c4153bc0] | openbravo | 338033287 | 3.65 | 95.83 | 796.0 | 3099691 | 401 |
[7d7d1050] | openbravo | 314888892 | 3.40 | 99.63 | 349.5 | 409 | 409 |
[84cd185c] | openbravo | 257205312 | 2.77 | 99.05 | 1754.7 | 1548 | 75 |
[2266d068] | openbravo | 214949376 | 2.32 | 99.66 | 270.5 | 1143 | 127 |
[464f8019] | openbravo | 202307924 | 2.18 | 99.92 | 202.9 | 33 | 33 |
[94eb716f] | openbravo | 176542270 | 1.90 | 98.60 | 185.2 | 156 | 28 |
[4f62fc29] | openbravo | 165526287 | 1.79 | 100.00 | 1189.2 | 27 | |
[bae859d8] | openbravo | 159492243 | 1.72 | 98.26 | 192.3 | 1335 | 150 |
[59f8fe6c] | openbravo | 129029759 | 1.39 | 99.98 | 166.5 | 32 | 18 |
[fb2a3095] | openbravo | 124971079 | 1.35 | 64.20 | 599.4 | 126 | |
[d9c82a48] | openbravo | 114660979 | 1.24 | 99.57 | 151.9 | 17 | 17 |
[e11c57bb] | openbravo | 114650683 | 1.24 | 99.86 | 733.2 | 17 | |
[72db11e8] | openbravo | 110745831 | 1.19 | 82.06 | 172.0 | 138 | |
[c20f80e1] | openbravo | 101152514 | 1.09 | 100.00 | 124.0 | 15 | 15 |
[980edddc] | openbravo | 98117340 | 1.06 | 97.21 | 110.5 | 16 | 16 |
[f51c7e38] | openbravo | 94914299 | 1.02 | 98.58 | 378.9 | 1192 | 19 |
[c21a81d2] | openbravo | 85849300 | 0.93 | 96.88 | 101.0 | 14 | 14 |
| Query ID | Database | Reads | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[5b93a467] | openbravo | 75167873 | 20.45 | 94.94 | 2712.1 | 138 | |
[fb2a3095] | openbravo | 44740849 | 12.17 | 64.20 | 599.4 | 126 | |
[4960efab] | openbravo | 25190256 | 6.85 | 5.07 | 37.9 | 24 | 24 |
[5494e49a] | openbravo | 25138793 | 6.84 | 5.26 | 28.9 | 24 | 24 |
[72db11e8] | openbravo | 19872836 | 5.41 | 82.06 | 172.0 | 138 | |
[e0869ab2] | openbravo | 14733359 | 4.01 | 97.77 | 1211.4 | 138 | |
[c4153bc0] | openbravo | 14111440 | 3.84 | 95.83 | 796.0 | 3099691 | 401 |
[6fed39e5] | openbravo | 8499716 | 2.31 | 3.90 | 9.5 | 8 | 8 |
[94a66f88] | openbravo | 8498436 | 2.31 | 3.92 | 9.6 | 8 | 8 |
[c1020a32] | openbravo | 4797340 | 1.31 | 65.95 | 162.8 | 6 | 1 |
[131a43ac] | openbravo | 4237127 | 1.15 | 4.19 | 4.7 | 4 | 4 |
[d5f8441b] | openbravo | 4225122 | 1.15 | 4.46 | 4.8 | 4 | 4 |
[6f1088e2] | openbravo | 4009184 | 1.09 | 0.02 | 27.5 | 1 | |
[70f21dd7] | openbravo | 4009171 | 1.09 | 0.00 | 27.5 | 1 | |
[7318d810] | openbravo | 4009170 | 1.09 | 0.00 | 349.5 | 38003019 | 1 |
[ac0831d] | openbravo | 3227592 | 0.88 | 24.82 | 38.4 | 8 | 8 |
[186741ec] | openbravo | 2905307 | 0.79 | 93.85 | 65.9 | 7 | 7 |
[bae859d8] | openbravo | 2779033 | 0.76 | 98.26 | 192.3 | 1335 | 150 |
[980edddc] | openbravo | 2738816 | 0.75 | 97.21 | 110.5 | 16 | 16 |
[f2f47190] | openbravo | 2728075 | 0.74 | 95.51 | 81.8 | 9 | 9 |
| Query ID | Database | Dirtied | %Total | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|
[a03a69a5] | openbravo | 217056 | 9.39 | 97.57 | 31.8 | 57189 | 57189 |
[eb67e33f] | openbravo | 110168 | 4.76 | 94.36 | 23.1 | 73199 | 73199 |
[3695269c] | openbravo | 89024 | 3.85 | 95.95 | 19.5 | 20112 | 20112 |
[74267a2] | openbravo | 78412 | 3.39 | 92.60 | 179.8 | 1481 | 1481 |
[a35d3b99] | openbravo | 78412 | 3.39 | 92.61 | 179.9 | 1481 | 1481 |
[ea4e56b9] | openbravo | 78412 | 3.39 | 92.60 | 179.8 | 1481 | 1481 |
[205b8c88] | openbravo | 52808 | 2.28 | 98.45 | 8.2 | 15840 | 15840 |
[4211bbca] | openbravo | 49309 | 2.13 | 40.00 | 8.2 | 1 | |
[bfd8039a] | openbravo | 35820 | 1.55 | 99.19 | 54.0 | 1211 | 1211 |
[59f8fe6c] | openbravo | 35202 | 1.52 | 99.98 | 166.5 | 32 | 18 |
[2ff59f28] | openbravo | 33112 | 1.43 | 99.43 | 5.9 | 51567 | 51567 |
[6f92ba97] | openbravo | 32259 | 1.39 | 10.48 | 87.7 | 7019154 | 1 |
[8f1d721] | openbravo | 25934 | 1.12 | 99.38 | 17.2 | 5619 | 5619 |
[aa92e059] | openbravo | 25663 | 1.11 | 96.32 | 55.5 | 7 | 7 |
[41b729f2] | openbravo | 24581 | 1.06 | 95.64 | 3.8 | 5685 | 5685 |
[d3eb78] | openbravo | 24379 | 1.05 | 89.94 | 6.4 | 11886 | 11886 |
[12018251] | openbravo | 22119 | 0.96 | 85.37 | 4.6 | 6090 | 6090 |
[4282957f] | openbravo | 20768 | 0.90 | 95.59 | 6.9 | 17444 | 17444 |
[97b6b91a] | openbravo | 20114 | 0.87 | 94.88 | 3.3 | 5777 | 5777 |
[3ef02a9d] | openbravo | 19450 | 0.84 | 97.15 | 3.1 | 9691 | 9691 |
| Query ID | Database | Written | %Total | %BackendW | Hits(%) | Elapsed(s) | Rows | Executions |
|---|---|---|---|---|---|---|---|---|
[4211bbca] | openbravo | 37507 | 2.14 | 18.51 | 40.00 | 8.2 | 1 | |
[72db11e8] | openbravo | 22975 | 1.31 | 11.34 | 82.06 | 172.0 | 138 | |
[76ede534] | openbravo | 16293 | 0.93 | 8.04 | 52.82 | 2.6 | 1 | |
[6ee18a4d] | openbravo | 12831 | 0.73 | 6.33 | 45.97 | 0.6 | 1 | |
[e0869ab2] | openbravo | 11989 | 0.69 | 5.92 | 97.77 | 1211.4 | 138 | |
[c21a81d2] | openbravo | 8833 | 0.51 | 4.36 | 96.88 | 101.0 | 14 | 14 |
[c4153bc0] | openbravo | 4661 | 0.27 | 2.30 | 95.83 | 796.0 | 3099691 | 401 |
[429b2ffc] | openbravo | 3755 | 0.21 | 1.85 | 69.07 | 0.4 | 1 | |
[186741ec] | openbravo | 2730 | 0.16 | 1.35 | 93.85 | 65.9 | 7 | 7 |
[b98cd3cc] | openbravo | 1712 | 0.10 | 0.84 | 79.34 | 32.6 | 9 | 9 |
[5b93a467] | openbravo | 1320 | 0.08 | 0.65 | 94.94 | 2712.1 | 138 | |
[f2f47190] | openbravo | 1197 | 0.07 | 0.59 | 95.51 | 81.8 | 9 | 9 |
[f123ad5b] | openbravo | 1104 | 0.06 | 0.54 | 60.91 | 7.8 | 1 | 1 |
[980edddc] | openbravo | 1084 | 0.06 | 0.53 | 97.21 | 110.5 | 16 | 16 |
[46baebc0] | openbravo | 738 | 0.04 | 0.36 | 83.40 | 18.8 | 1 | 1 |
[daf1066c] | openbravo | 670 | 0.04 | 0.33 | 98.42 | 237.2 | 967 | 967 |
[f51c7e38] | openbravo | 670 | 0.04 | 0.33 | 98.58 | 378.9 | 1192 | 19 |
[196d23a4] | openbravo | 507 | 0.03 | 0.25 | 91.82 | 20.8 | 1 | 1 |
[1e5d1bbf] | openbravo | 468 | 0.03 | 0.23 | 92.32 | 0.3 | 1 | |
[b8ecf334] | openbravo | 350 | 0.02 | 0.17 | 5.31 | 5.4 | 1 | 1 |
| Query ID | Database | Local fetched | Hits(%) | Local (blk) | Temp (blk) | Elapsed(s) | Rows | Executions | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Write | %Total | Read | %Total | Write | %Total | Read | %Total | |||||||
[84cd185c] | openbravo | 368510 | 48.55 | 368570 | 67.55 | 1754.7 | 1548 | 75 | ||||||
[6e3dad39] | openbravo | 145311 | 19.14 | 59631 | 10.93 | 42.6 | 338 | 13 | ||||||
[6e556c27] | openbravo | 89422 | 11.78 | 36696 | 6.73 | 26.1 | 208 | 8 | ||||||
[58a0d3d2] | openbravo | 46818 | 6.17 | 14679 | 2.69 | 0.7 | 4 | 4 | ||||||
[bfef2e79] | openbravo | 25104 | 3.31 | 25101 | 4.60 | 18.2 | 59 | 3 | ||||||
[aa92e059] | openbravo | 29771 | 3.92 | 18368 | 3.37 | 55.5 | 7 | 7 | ||||||
[b2dd73b6] | openbravo | 15407 | 2.03 | 6 | 0.00 | 5.2 | 1 | 1 | ||||||
[aba3845d] | openbravo | 7526 | 0.99 | 4592 | 0.84 | 6.7 | 1 | 1 | ||||||
[d87869f1] | openbravo | 7363 | 0.97 | 3556 | 0.65 | 10.6 | 1 | 1 | ||||||
[b394259d] | openbravo | 4848 | 0.64 | 4848 | 0.89 | 0.4 | 1 | 1 | ||||||
[fbc81439] | openbravo | 4848 | 0.64 | 4848 | 0.89 | 0.4 | 2 | 2 | ||||||
[e4238259] | openbravo | 7034 | 0.93 | 8 | 0.00 | 0.3 | 2 | 2 | ||||||
[c95b0f98] | openbravo | 3522 | 0.46 | 2366 | 0.43 | 0.2 | 1 | 1 | ||||||
[fae9dfc5] | openbravo | 3522 | 0.46 | 2366 | 0.43 | 0.2 | 1 | 1 | ||||||
[6fbaf8c1] | openbravo | 76232 | 99.19 | 621 | 26.84 | 0.3 | 74378 | 74378 | ||||||
[499c90f3] | openbravo | 4831 | 99.30 | 34 | 1.47 | 0.0 | 4738 | 4738 | ||||||
[42fc2725] | openbravo | 7224 | 99.54 | 33 | 1.43 | 0.0 | 7134 | 7134 | ||||||
[1f563790] | openbravo | 7615 | 99.62 | 29 | 1.25 | 0.0 | 7530 | 7530 | ||||||
[6a5e29af] | openbravo | 7092 | 99.59 | 29 | 1.25 | 0.0 | 7014 | 7014 | ||||||
[b5a0c24e] | openbravo | 7608 | 99.62 | 29 | 1.25 | 0.0 | 7528 | 7528 | ||||||
| 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 |
| 7efafc5af2 | SELECT C_ORDER_POST1(p_PInstance_ID, $2) |
| 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) |
| 40adad5304 | 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_ left outer join C_BPartner businesspa1_ on materialmg0_.C_BPartner_ID=businesspa1_.C_BPartner_ID cross join C_DocType documentty2_ where materialmg0_.C_DocType_ID=documentty2_.C_DocType_ID and (materialmg0_.MovementType in ($43 , $44)) and materialmg0_.Islogistic=$45 and documentty2_.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 businesspa1_.Value desc, businesspa1_.Name desc, businesspa1_.TaxID desc, businesspa1_.Name2 desc, materialmg0_.M_InOut_ID desc limit $42 |
| 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) |
| f159d14bd9 | 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_.EM_Aeatsii_Fecha_Reg_Cont desc, invoice0_.C_Invoice_ID desc limit $41 |
| 8cbbd77293 | 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_.GrandTotal desc, invoice0_.C_Invoice_ID desc limit $41 |
| 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 |
| 13ec9b5ce6 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 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 |
| 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 |
| b9a73dbea9 | SELECT AD_CLIENT_ID,AD_ORG_ID, ISACTIVE, UPDATED,UPDATEDBY,ALIAS, COMBINATION, DESCRIPTION, ISFULLYQUALIFIED, C_ACCTSCHEMA_ID, ACCOUNT_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, $2 as UseSuspenseBalancing, $3 as SuspenseBalancing_Acct, $4 as UseSuspenseError, $5 as SuspenseError_Acct, $6 as UseCurrencyBalancing, $7 as CurrencyBalancing_Acct, $8 as RetainedEarning_Acct, $9 as IncomeSummary_Acct, $10 as InterCompanyDueTo_Acct, $11 as InterCompanyDueFrom_Acct FROM C_ValidCombination WHERE C_ValidCombination_ID=$1 |
| 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 |
| 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) |
| 59de48c20b | SELECT $2 FROM ONLY "public"."c_bpartner_location" x WHERE "c_bpartner_location_id"::pg_catalog.text OPERATOR(pg_catalog.=) $1::pg_catalog.text FOR KEY SHARE OF x |
| b93f3a3e02 | select count(*) as y0_ from AD_TreeNode this_ where this_.Node_ID=$1 and this_.Parent_ID<>$2 and this_.IsActive=$3 |
| 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) |
| fe49fa204f | update M_Transaction set Updated=$1, UpdatedBy=$2, TransactionCost=$3, M_Costing_Algorithm_ID=$4, IsCostCalculated=$5, C_Currency_ID=$6, Costing_Status=$7 where M_Transaction_ID=$8 |
| 10f4e6f2bf | SELECT COUNT(*) AS TOTAL FROM AD_SESSION WHERE AD_SESSION_ID = $1 AND SESSION_ACTIVE = $2 AND ISACTIVE = $3 |
| 320ed06a6d | insert into C_InvoiceLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, C_Invoice_ID, C_OrderLine_ID, M_InOutLine_ID, Line, Description, Financial_Invoice_Line, M_Product_ID, QtyInvoiced, PriceList, PriceActual, LineNetAmt, C_UOM_ID, C_Tax_ID, IsDescription, PriceStd, Excludeforwithholding, Iseditlinenetamt, Line_Gross_Amount, Gross_Unit_Price, C_Bpartner_ID, grosspricestd, Grosspricelist, IsDeferred, Explode, Match_Lccosts, EM_Prdd_Distribute_Dimensions, EM_Priuti_Discount, EM_Priuti_Updatepricelist, EM_Priuti_Pricelist_Updated, C_InvoiceLine_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37) |
| 2c756b6487 | vacuum analyze obmobc_logclient |
| 2c52c242a6 | INSERT INTO ad_session_usage_audit (ad_session_usage_audit_id, ad_client_id, ad_org_id, createdby, updatedby, ad_session_id, object_id, ad_module_id, command, classname, object_type, process_time) VALUES (get_uuid(),$10,$11,$1,$2,$3,$4,$5,$6,$7,$8,to_number($9)) |
| 8b47e0efaf | vacuum analyze M_Stock_Proposed |
| 08e4e555e9 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 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 |
| 4b615bbcc3 | select pruti_stoc0_.Pruti_Stock_Detail_V_ID as Pruti_St1_938_0_, pruti_stoc0_.AD_Client_ID as AD_Clien2_938_0_, pruti_stoc0_.AD_Org_ID as AD_Org_I3_938_0_, pruti_stoc0_.Isactive as Isactive4_938_0_, pruti_stoc0_.Created as Created5_938_0_, pruti_stoc0_.Createdby as Createdb6_938_0_, pruti_stoc0_.Updated as Updated7_938_0_, pruti_stoc0_.Updatedby as Updatedb8_938_0_, pruti_stoc0_.Type as Type9_938_0_, pruti_stoc0_.M_Product_ID as M_Produ10_938_0_, pruti_stoc0_.Qty as Qty11_938_0_, pruti_stoc0_.M_Attributesetinstance_ID as M_Attri12_938_0_, pruti_stoc0_.M_Locator_ID as M_Locat13_938_0_, pruti_stoc0_.M_Warehouse_ID as M_Wareh14_938_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.Pruti_Stock_Detail_V_ID=$1 |
| 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) |
| 3ffe3bd941 | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 4a3e0e1397 | 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 exists (select $3 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID=businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo||$4||coalesce(to_char(order1_.DateOrdered), $5)||$6||coalesce(to_char(order1_.GrandTotal), $7))) like upper($1) escape $8) and businesspa2_.C_BPartner_ID=businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ($9 , $10 , $11 , $12 , $13 , $14 , $15 , $16 , $17 , $18 , $19 , $20 , $21 , $22 , $23 , $24 , $25 , $26 , $27 , $28 , $29 , $30 , $31 , $32 , $33 , $34 , $35 , $36 , $37 , $38 , $39 , $40 , $41 , $42 , $43 , $44 , $45 , $46)) and (order1_.AD_Client_ID in ($47 , $48))) order by businesspa0_.Value, businesspa0_.Name, businesspa0_.TaxID, businesspa0_.Name2 limit $2 |
| 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) |
| 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 |
| 974abe8643 | 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 C_BPartner businesspa1_ on invoice0_.C_BPartner_ID=businesspa1_.C_BPartner_ID where (upper(invoice0_.DocumentNo) like upper($1) escape $44) and (upper((businesspa1_.Value||$45||businesspa1_.Name||$46||coalesce(to_char(businesspa1_.TaxID), $47)||$48||coalesce(to_char(businesspa1_.Name2), $49))) like upper($2) escape $50) and invoice0_.IsSOTrx=$51 and invoice0_.DocStatus<>$52 and (invoice0_.AD_Org_ID in ($3 , $4 , $5 , $6 , $7 , $8 , $9 , $10 , $11 , $12 , $13 , $14 , $15 , $16 , $17 , $18 , $19 , $20 , $21 , $22 , $23 , $24 , $25 , $26 , $27 , $28 , $29 , $30 , $31 , $32 , $33 , $34 , $35 , $36 , $37 , $38 , $39 , $40)) and (invoice0_.AD_Client_ID in ($41 , $42)) order by invoice0_.C_Invoice_ID desc limit $43 |
| 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) |
| 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 |
| d195b700bc | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 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 |
| c08aa6fa9c | -- END ALTER TABLE FACT_ACCT ADD CONSTRAINT FACT_ACCT_AD_TABLE FOREIGN KEY (AD_TABLE_ID) REFERENCES AD_TABLE (AD_TABLE_ID) ON DELETE CASCADE |
| 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 |
| 12855dd66c | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 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) |
| 92e90f4e36 | SELECT fk."ad_table_id" FROM ONLY "public"."fact_acct" fk LEFT OUTER JOIN ONLY "public"."ad_table" pk ON ( pk."ad_table_id"::pg_catalog.text OPERATOR(pg_catalog.=) fk."ad_table_id"::pg_catalog.text) WHERE pk."ad_table_id" IS NULL AND (fk."ad_table_id" IS NOT NULL) |
| b4d6b6665e | SELECT * FROM (select inst.prpass_pass_inst_id AS referencekey_id, inst.value AS record_id, $2 AS ad_role_id, $3 AS ad_user_id, $4||inst.value AS description, $5 AS isActive, inst.ad_org_id, inst.ad_client_id, now() AS created, $6 AS createdBy, now() AS updated, $7 AS updatedBy from prpass_pass_inst inst where value IN ( select value from prpass_pass_inst where created >= current_date - $8 group by value having count(value) > $9 )) AAA where not exists (select $10 from ad_alert a where a.ad_alertrule_id = $1 and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, $11) != $12) |
| 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 |
| 2ce9536368 | vacuum analyze prsync_entry |
| bde1a48003 | select sum(invoice0_.GrandTotal) as col_0_0_ from C_Invoice invoice0_ where invoice0_.DateInvoiced>=$1 and invoice0_.DateInvoiced<=$2 and invoice0_.DocStatus=$3 and invoice0_.IsSOTrx=$45 and invoice0_.DocStatus<>$46 and (invoice0_.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 (invoice0_.AD_Client_ID in ($42 , $43)) limit $44 |
| 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 |
| 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) |
| 03d9123317 | 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_.DateOrdered desc, order0_.C_Order_ID desc limit $42 |
| 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 |
| 1b416379ea | insert into M_InOutLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, Line, Description, M_InOut_ID, C_OrderLine_ID, M_Locator_ID, M_Product_ID, C_UOM_ID, MovementQty, IsInvoiced, IsDescription, Manage_Prereservation, C_Bpartner_ID, Explode, EM_Obwpl_Editlines_Pe, EM_Obwpl_Removeline, EM_Pruti_Voidlines, EM_Pruti_Isvoid, M_InOutLine_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) |
| 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 |
| 88a5ad3dfa | 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||$4||coalesce(to_char(order0_.DateOrdered), $5)||$6||coalesce(to_char(order0_.GrandTotal), $7))) like upper($1) escape $8) and (exists (select $9 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 ($10 , $11)) and materialmg1_.Islogistic=$12 and documentty3_.IsReturn=$13 and order2_.C_Order_ID=order0_.C_Order_ID and (materialmg1_.AD_Org_ID in ($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 , $51)) and (materialmg1_.AD_Client_ID in ($52 , $53)))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit $2 offset $3 |
| d545a87b3d | update C_Invoice set Updated=$1, LastCalculatedOnDate=$2 where C_Invoice_ID=$3 |
| 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 |
| 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='Initial' order by c_import_e0_.Created, c_import_e0_.Createdtimestamp limit $2 |
| 5c9cd00b05 | 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_.GrandTotal desc, invoice0_.C_Invoice_ID desc limit $42 |
| eaafc55d44 | select materialmg0_.M_Transaction_ID as M_Transa1_558_, materialmg0_.AD_Client_ID as AD_Clien2_558_, materialmg0_.AD_Org_ID as AD_Org_I3_558_, materialmg0_.IsActive as IsActive4_558_, materialmg0_.Created as Created5_558_, materialmg0_.CreatedBy as CreatedB6_558_, materialmg0_.Updated as Updated7_558_, materialmg0_.UpdatedBy as UpdatedB8_558_, materialmg0_.MovementType as Movement9_558_, materialmg0_.M_Locator_ID as M_Locat10_558_, materialmg0_.M_Product_ID as M_Produ11_558_, materialmg0_.MovementDate as Movemen12_558_, materialmg0_.MovementQty as Movemen13_558_, materialmg0_.M_InventoryLine_ID as M_Inven14_558_, materialmg0_.M_MovementLine_ID as M_Movem15_558_, materialmg0_.M_InOutLine_ID as M_InOut16_558_, materialmg0_.M_ProductionLine_ID as M_Produ17_558_, materialmg0_.C_ProjectIssue_ID as C_Proje18_558_, materialmg0_.M_AttributeSetInstance_ID as M_Attri19_558_, materialmg0_.M_Product_Uom_Id as M_Produ20_558_, materialmg0_.QuantityOrder as Quantit21_558_, materialmg0_.C_UOM_ID as C_UOM_I22_558_, materialmg0_.M_Internal_Consumptionline_ID as M_Inter23_558_, materialmg0_.TransactionCost as Transac24_558_, materialmg0_.TrxProcessDate as TrxProc25_558_, materialmg0_.M_Costing_Algorithm_ID as M_Costi26_558_, materialmg0_.IsCostCalculated as IsCostC27_558_, materialmg0_.C_Currency_ID as C_Curre28_558_, materialmg0_.Costing_Status as Costing29_558_, materialmg0_.Checkreservedqty as Checkre30_558_, materialmg0_.Isprocessed as Isproce31_558_, materialmg0_.Checkpricedifference as Checkpr32_558_, materialmg0_.EM_Prouti_Exported as EM_Prou33_558_, materialmg0_.Manualcostadjustment as Manualc34_558_, materialmg0_.IsCostPermanent as IsCostP35_558_, materialmg0_.EM_Pricm_Inoutline_ID as EM_Pric36_558_ from M_Transaction materialmg0_ where materialmg0_.M_Product_ID=$1 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_.MovementDate, materialmg0_.M_Transaction_ID limit $42 |
| 7b31b157d2 | SELECT json_agg(row_to_json(f)) as arrayRes from (select pcr.psat_checklist_result_id as id, pcr.advcrm_activity_id as activityid, pcr.psat_check_type_id as type, case when pct.type = $1 then $2 || encode(ai.binarydata , $3) else pcr."result" end as result, pcr.psat_checklist_group_id as checkgroup from psat_checklist_result pcr left join psat_check_type pct on pcr.psat_check_type_id = pct.psat_check_type_id left join ad_image ai on ai.ad_image_id = pcr.ad_image_id where $4=$5 and exists (select $6 from advcrm_activity aa where aa.advcrm_activity_id = pcr.advcrm_activity_id and ((aa.ad_user_id = $7 or exists ( select $8 from advcrm_group_users agu where agu.ad_user_id = $9 and agu.advcrm_group_id = aa.advcrm_group_id ) or exists (select $10 from advcrm_activity_users aau where aau.advcrm_activity_id = aa.advcrm_activity_id and ( aau.ad_user_id = $11 or exists (select $12 from advcrm_group_users agu where agu.ad_user_id = $13 and agu.advcrm_group_id = aau.advcrm_group_id) )))) and aa.date_start < $14 and (aa.status <> $15 or aa.date_start > $16) ) and pcr.updated > $17 order by pcr.advcrm_activity_id limit $18 offset $19) as f |
| 8af0c7ed0b | insert into ad_context_info (ad_user_id, ad_session_id, processType, processId) values ($1, $2, $3, $4) |
| 943d79be4b | SELECT $4 FROM ONLY "profile"."last_stat_database" x WHERE "server_id" OPERATOR(pg_catalog.=) $1 AND "sample_id" OPERATOR(pg_catalog.=) $2 AND "datid" OPERATOR(pg_catalog.=) $3 FOR KEY SHARE OF x |
| 82c30be2ca | 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_.MovementDate desc, materialmg0_.M_InOut_ID desc limit $42 |
| 3a78d1820c | 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_ left outer join C_BPartner businesspa1_ on materialmg0_.C_BPartner_ID=businesspa1_.C_BPartner_ID inner join C_Order order2_ on materialmg0_.C_Order_ID=order2_.C_Order_ID cross join C_DocType documentty3_ where materialmg0_.C_DocType_ID=documentty3_.C_DocType_ID and upper((order2_.DocumentNo||$44||coalesce(to_char(order2_.DateOrdered), $45)||$46||coalesce(to_char(order2_.GrandTotal), $47)))=upper($1) and (materialmg0_.MovementType in ($48 , $49)) and materialmg0_.Islogistic=$50 and documentty3_.IsReturn=$51 and (materialmg0_.Updated>$2 or materialmg0_.Processed=$52) and (materialmg0_.AD_Org_ID in ($3 , $4 , $5 , $6 , $7 , $8 , $9 , $10 , $11 , $12 , $13 , $14 , $15 , $16 , $17 , $18 , $19 , $20 , $21 , $22 , $23 , $24 , $25 , $26 , $27 , $28 , $29 , $30 , $31 , $32 , $33 , $34 , $35 , $36 , $37 , $38 , $39 , $40)) and (materialmg0_.AD_Client_ID in ($41 , $42)) order by businesspa1_.Value desc, businesspa1_.Name desc, businesspa1_.TaxID desc, businesspa1_.Name2 desc, materialmg0_.M_InOut_ID desc limit $43 |
| c17924c407 | 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_Invoice invoice1_ inner join C_BPartner businesspa2_ on invoice1_.C_BPartner_ID=businesspa2_.C_BPartner_ID where invoice1_.IsSOTrx=$10 and invoice1_.DocStatus<>$11 and businesspa2_.C_BPartner_ID=businesspa0_.C_BPartner_ID and (invoice1_.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 (invoice1_.AD_Client_ID in ($50 , $51)))) order by businesspa0_.Value, businesspa0_.Name, businesspa0_.TaxID, businesspa0_.Name2 limit $2 |
| 43a80059e4 | SELECT * FROM C_Invoice_Create($8, v_Record_ID) |
| 91f0089d3d | 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_.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_.DateAcct, invoice0_.C_Invoice_ID limit $41 offset $42 |
| 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' |
| 475c41a119 | select sum(invoice0_.OutstandingAmt) as col_0_0_, sum(invoice0_.Totalpaid) as col_1_0_ from C_Invoice invoice0_ where (upper(invoice0_.DocumentNo) like upper($1) escape $43) and invoice0_.IsSOTrx=$44 and invoice0_.DocStatus<>$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)) limit $42 |
| 20bf60e95d | 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 desc, order0_.C_Order_ID desc 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) |
| 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 |
| f6b9cfdb77 | select c_import_e0_.C_Import_Entry_Archive_ID as C_Import1_258_, c_import_e0_.AD_Client_ID as AD_Clien2_258_, c_import_e0_.AD_Org_ID as AD_Org_I3_258_, c_import_e0_.Isactive as Isactive4_258_, c_import_e0_.Created as Created5_258_, c_import_e0_.Createdby as Createdb6_258_, c_import_e0_.Updated as Updated7_258_, c_import_e0_.Updatedby as Updatedb8_258_, c_import_e0_.Imported as Imported9_258_, c_import_e0_.Jsoninfo as Jsoninf10_258_, c_import_e0_.ImportStatus as ImportS11_258_, c_import_e0_.Typeofdata as Typeofd12_258_, c_import_e0_.Errorinfo as Errorin13_258_, c_import_e0_.AD_Role_ID as AD_Role14_258_, c_import_e0_.EM_Obpos_Applications_ID as EM_Obpo15_258_, c_import_e0_.Responseinfo as Respons16_258_ from C_Import_Entry_Archive c_import_e0_ where (c_import_e0_.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 (c_import_e0_.AD_Client_ID in ($39 , $40)) order by c_import_e0_.Created desc, c_import_e0_.C_Import_Entry_Archive_ID desc limit $41 offset $42 |
| ec8c626e99 | COPY public.ad_image (ad_image_id, ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, imageurl, binarydata, width, height, mimetype) TO stdout |
| 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 |
| 189e272f54 | 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 exists (select $3 from M_InOut materialmg1_ left outer join C_BPartner businesspa2_ on materialmg1_.C_BPartner_ID=businesspa2_.C_BPartner_ID inner join C_Order order3_ on materialmg1_.C_Order_ID=order3_.C_Order_ID where (upper((materialmg1_.DocumentNo||$4||coalesce(to_char(materialmg1_.MovementDate), $5)||$6||(businesspa2_.Value||$7||businesspa2_.Name||$8||coalesce(to_char(businesspa2_.TaxID), $9)||$10||coalesce(to_char(businesspa2_.Name2), $11)))) like upper($1) escape $12) and order3_.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 |
| 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 |
| 6856866d41 | select sum(invoice0_.GrandTotal) as col_0_0_, sum(invoice0_.Totalpaid) as col_1_0_, sum(invoice0_.OutstandingAmt) as col_2_0_ 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)) limit $41 |
| a9174bed1c | 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 |
| 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) |
| 60ced86ccb | 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 exists (select $3 from C_Invoice invoice1_ inner join C_BPartner businesspa2_ on invoice1_.C_BPartner_ID=businesspa2_.C_BPartner_ID where (upper((invoice1_.DocumentNo||$4||coalesce(to_char(invoice1_.DateInvoiced), $5)||$6||coalesce(to_char(invoice1_.GrandTotal), $7))) like upper($1) escape $8) and businesspa2_.C_BPartner_ID=businesspa0_.C_BPartner_ID and (invoice1_.AD_Org_ID in ($9 , $10 , $11 , $12 , $13 , $14 , $15 , $16 , $17 , $18 , $19 , $20 , $21 , $22 , $23 , $24 , $25 , $26 , $27 , $28 , $29 , $30 , $31 , $32 , $33 , $34 , $35 , $36 , $37 , $38 , $39 , $40 , $41 , $42 , $43 , $44 , $45 , $46)) and (invoice1_.AD_Client_ID in ($47 , $48))) order by businesspa0_.Value, businesspa0_.Name, businesspa0_.TaxID, businesspa0_.Name2 limit $2 |
| b524945fb7 | select c_import_e0_.C_Import_Entry_Archive_ID as C_Import1_258_, c_import_e0_.AD_Client_ID as AD_Clien2_258_, c_import_e0_.AD_Org_ID as AD_Org_I3_258_, c_import_e0_.Isactive as Isactive4_258_, c_import_e0_.Created as Created5_258_, c_import_e0_.Createdby as Createdb6_258_, c_import_e0_.Updated as Updated7_258_, c_import_e0_.Updatedby as Updatedb8_258_, c_import_e0_.Imported as Imported9_258_, c_import_e0_.Jsoninfo as Jsoninf10_258_, c_import_e0_.ImportStatus as ImportS11_258_, c_import_e0_.Typeofdata as Typeofd12_258_, c_import_e0_.Errorinfo as Errorin13_258_, c_import_e0_.AD_Role_ID as AD_Role14_258_, c_import_e0_.EM_Obpos_Applications_ID as EM_Obpo15_258_, c_import_e0_.Responseinfo as Respons16_258_ from C_Import_Entry_Archive c_import_e0_ where (c_import_e0_.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 (c_import_e0_.AD_Client_ID in ($39 , $40)) order by c_import_e0_.Created, c_import_e0_.C_Import_Entry_Archive_ID limit $41 |
| 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 ) |
| 62f93705d3 | 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_ left outer join C_Order order1_ on materialmg0_.C_Order_ID=order1_.C_Order_ID cross join C_DocType documentty2_ where materialmg0_.C_DocType_ID=documentty2_.C_DocType_ID and (materialmg0_.MovementType in ($42 , $43)) and materialmg0_.Islogistic=$44 and documentty2_.IsReturn=$45 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 order1_.DocumentNo desc, order1_.DateOrdered desc, order1_.GrandTotal desc, materialmg0_.M_InOut_ID desc limit $41 |
| 6c5811c9a5 | 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_.DateAcct, invoice0_.C_Invoice_ID limit $41 |
| 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 |
| ce8d471f91 | select c_import_e0_.C_Import_Entry_Archive_ID as C_Import1_258_, c_import_e0_.AD_Client_ID as AD_Clien2_258_, c_import_e0_.AD_Org_ID as AD_Org_I3_258_, c_import_e0_.Isactive as Isactive4_258_, c_import_e0_.Created as Created5_258_, c_import_e0_.Createdby as Createdb6_258_, c_import_e0_.Updated as Updated7_258_, c_import_e0_.Updatedby as Updatedb8_258_, c_import_e0_.Imported as Imported9_258_, c_import_e0_.Jsoninfo as Jsoninf10_258_, c_import_e0_.ImportStatus as ImportS11_258_, c_import_e0_.Typeofdata as Typeofd12_258_, c_import_e0_.Errorinfo as Errorin13_258_, c_import_e0_.AD_Role_ID as AD_Role14_258_, c_import_e0_.EM_Obpos_Applications_ID as EM_Obpo15_258_, c_import_e0_.Responseinfo as Respons16_258_ from C_Import_Entry_Archive c_import_e0_ where (c_import_e0_.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 (c_import_e0_.AD_Client_ID in ($39 , $40)) order by c_import_e0_.Created desc, c_import_e0_.C_Import_Entry_Archive_ID desc limit $41 |
| 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) |
| 7871717022 | SELECT json_agg(row_to_json(f)) as arrayRes from (select pcr.psat_checklist_result_id as id, pcr.advcrm_activity_id as activityid, pcr.psat_check_type_id as type, case when pct.type = $1 then $2 || encode(ai.binarydata , $3) else pcr."result" end as result, pcr.psat_checklist_group_id as checkgroup from psat_checklist_result pcr left join psat_check_type pct on pcr.psat_check_type_id = pct.psat_check_type_id left join ad_image ai on ai.ad_image_id = pcr.ad_image_id where $4=$5 and exists (select $6 from advcrm_activity aa where aa.advcrm_activity_id = pcr.advcrm_activity_id and ((aa.ad_user_id = $7 or exists ( select $8 from advcrm_group_users agu where agu.ad_user_id = $9 and agu.advcrm_group_id = aa.advcrm_group_id ) or exists (select $10 from advcrm_activity_users aau where aau.advcrm_activity_id = aa.advcrm_activity_id and ( aau.ad_user_id = $11 or exists (select $12 from advcrm_group_users agu where agu.ad_user_id = $13 and agu.advcrm_group_id = aau.advcrm_group_id) )))) and aa.date_start < $14 and (aa.status <> $15 or aa.date_start > $16) ) order by pcr.advcrm_activity_id limit $17 offset $18) as f |
| 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 |
| DB | Tablespace | Schema | Table | ~SeqBytes | SeqScan | IxScan | IxFet | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | prpass_pass_inst | 4348 GB | 710 | 13503192 | 1022981165 | 9555 | 16518 | 3663 | |
| prpass_pass_inst(TOAST) | |||||||||||
| openbravo | pg_default | public | c_orderline | 3054 GB | 362 | 63574359 | 130466359 | 9264 | 27219 | 10 | 12212 |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | c_order | 2669 GB | 353 | 68260504 | 2740810236 | 4502 | 18473 | 5 | 10875 |
| c_order(TOAST) | |||||||||||
| openbravo | pg_default | public | m_inout | 804 GB | 198 | 60703363 | 68040122 | 4455 | 11642 | 1 | 6872 |
| m_inout(TOAST) | 2492 | 13750 | 44 | 36 | |||||||
| openbravo | pg_default | pg_temp_13 | ad_context_info | 353 GB | 74398 | 74377 | 74376 | ||||
| openbravo | pg_default | public | prpass_timeslots_res | 276 GB | 1091 | 4243449 | 1008525467 | 2615 | 1526 | 1091 | 2 |
| prpass_timeslots_res(TOAST) | |||||||||||
| openbravo | pg_default | public | prges_records | 122 GB | 1216 | 776911 | 776911 | 17 | 36 | 24 | |
| prges_records(TOAST) | 261268 | 362404 | |||||||||
| openbravo | pg_default | public | c_invoice | 97 GB | 14 | 52316703 | 1839324424 | 4298 | 118443 | 3 | 21439 |
| c_invoice(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_class | 59 GB | 44559 | 2063264 | 1958060 | 588 | 24962 | 569 | 23799 |
| openbravo | pg_default | public | ad_audit_trail | 44 GB | 84 | 11870 | 6386 | 4902 | |||
| ad_audit_trail(TOAST) | |||||||||||
| openbravo | pg_default | public | c_bpartner | 35 GB | 3338 | 14199333 | 16023838 | 5979 | 5974 | ||
| c_bpartner(TOAST) | |||||||||||
| openbravo | pg_default | public | m_product | 33 GB | 3393 | 9221589 | 10222066 | 3 | 12 | 7 | |
| m_product(TOAST) | |||||||||||
| openbravo | pg_default | public | fact_acct | 31 GB | 1 | 35712 | 252045 | 20121 | 5262 | 257 | |
| fact_acct(TOAST) | |||||||||||
| openbravo | pg_default | public | m_storage_detail | 26 GB | 945 | 1137995 | 1774516 | 13 | 54449 | 2 | 37087 |
| m_storage_detail(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 23 GB | 6 | 85996 | 144695 | 2946 | 20443 | 1 | 8159 |
| fin_payment(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_column | 18 GB | 2396 | 201712 | 3370962 | 36 | 960 | 927 | |
| ad_column(TOAST) | |||||||||||
| openbravo | pg_default | public | ad_table | 16 GB | 10506 | 20552 | 31813 | 2 | 1087 | 434 | |
| ad_table(TOAST) | |||||||||||
| openbravo | pg_default | public | m_transaction | 13 GB | 1 | 150551 | 3493674 | 13639 | 29205 | 1191 | |
| m_transaction(TOAST) | |||||||||||
| openbravo | pg_default | public | m_productionline | 7831 MB | 1 | 2839521 | 9738365 | 8168 | 16144 | 15346 | |
| m_productionline(TOAST) | |||||||||||
| openbravo | pg_default | public | c_invoiceline | 7410 MB | 1 | 56476707 | 52819948 | 8894 | 3246 | 27 | 2521 |
| c_invoiceline(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | ||||
| openbravo | pg_default | public | c_order | 2586509524 | 28.75 | 319591520 | 3.55 | ||||
| openbravo | pg_default | public | c_invoice | 1760790373 | 19.57 | 269707506 | 3.00 | ||||
| openbravo | pg_default | public | fin_finacc_transaction | 680709373 | 7.57 | 64703973 | 0.72 | ||||
| openbravo | pg_default | public | prpass_timeslots_res | 705772759 | 7.84 | 11862125 | 0.13 | ||||
| openbravo | pg_default | public | prpass_pass_inst | 442324205 | 4.92 | 62276531 | 0.69 | ||||
| openbravo | pg_default | public | c_orderline | 174087598 | 1.94 | 283982637 | 3.16 | ||||
| openbravo | pg_default | public | m_inout | 173739913 | 1.93 | 243837873 | 2.71 | 5328 | 0.00 | 61932 | 0.00 |
| openbravo | pg_default | public | m_inoutline | 56554242 | 0.63 | 229399841 | 2.55 | ||||
| openbravo | pg_default | public | c_invoiceline | 53635864 | 0.60 | 226834438 | 2.52 | ||||
| openbravo | pg_default | public | m_costing | 83064898 | 0.92 | 4458349 | 0.05 | ||||
| openbravo | pg_default | public | c_bpartner | 21100460 | 0.23 | 31518719 | 0.35 | ||||
| openbravo | pg_default | public | m_product | 14393244 | 0.16 | 18831628 | 0.21 | ||||
| openbravo | pg_default | public | ad_treenode | 889691 | 0.01 | 23313464 | 0.26 | ||||
| openbravo | pg_default | pg_temp_13 | ad_context_info | 23249830 | 0.26 | ||||||
| openbravo | pg_default | public | prges_records | 16775958 | 0.19 | 2341565 | 0.03 | 268492 | 0.00 | 261286 | 0.00 |
| openbravo | pg_default | public | m_transaction | 4316694 | 0.05 | 10116600 | 0.11 | ||||
| openbravo | pg_default | public | m_productionline | 5687063 | 0.06 | 8664039 | 0.10 | ||||
| openbravo | pg_default | pg_catalog | pg_class | 9262387 | 0.10 | 4166186 | 0.05 | ||||
| openbravo | pg_default | public | prpass_pass_trans | 729948 | 0.01 | 11770411 | 0.13 | ||||
| openbravo | pg_default | public | c_doctype | 5013580 | 0.06 | 4971053 | 0.06 | ||||
| DB | Tablespace | Schema | Table | Heap | Ix | TOAST | TOAST-Ix | Hit(%) | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Blks | %Total | Blks | %Total | Blks | %Total | Blks | %Total | |||||
| openbravo | pg_default | public | c_order | 110450973 | 31.32 | 6859878 | 1.95 | 95.96 | ||||
| openbravo | pg_default | public | c_orderline | 84810829 | 24.05 | 3622036 | 1.03 | 80.69 | ||||
| openbravo | pg_default | public | prpass_pass_inst | 32305570 | 9.16 | 3090475 | 0.88 | 92.99 | ||||
| openbravo | pg_default | public | c_invoice | 20367747 | 5.78 | 6788967 | 1.93 | 98.66 | ||||
| openbravo | pg_default | public | m_inout | 14059599 | 3.99 | 1704115 | 0.48 | 3390 | 0.00 | 960 | 0.00 | 96.22 |
| openbravo | pg_default | public | fin_finacc_transaction | 12794991 | 3.63 | 2612585 | 0.74 | 97.93 | ||||
| openbravo | pg_default | public | m_inoutline | 6118924 | 1.74 | 3293585 | 0.93 | 96.71 | ||||
| openbravo | pg_default | public | c_invoiceline | 3795966 | 1.08 | 3331356 | 0.94 | 97.46 | ||||
| openbravo | pg_default | public | fact_acct | 4082165 | 1.16 | 159092 | 0.05 | 33.60 | ||||
| openbravo | pg_default | public | m_costing | 2899124 | 0.82 | 245573 | 0.07 | 96.41 | ||||
| openbravo | pg_default | public | m_transaction | 2057464 | 0.58 | 657303 | 0.19 | 81.19 | ||||
| openbravo | pg_default | public | fin_payment_schedule | 2197386 | 0.62 | 100202 | 0.03 | 74.23 | ||||
| openbravo | pg_default | public | prpass_pass_trans | 659182 | 0.19 | 1204543 | 0.34 | 85.09 | ||||
| openbravo | pg_default | public | m_productionline | 1641396 | 0.47 | 213518 | 0.06 | 87.07 | ||||
| openbravo | pg_default | public | ad_audit_trail | 1629536 | 0.46 | 10636 | 0.00 | 71.78 | ||||
| openbravo | pg_default | public | prpass_timeslots_res | 843180 | 0.24 | 198308 | 0.06 | 99.85 | ||||
| openbravo | pg_default | public | m_productionplan | 430228 | 0.12 | 272052 | 0.08 | 92.10 | ||||
| openbravo | pg_default | public | ad_image | 270 | 0.00 | 117 | 0.00 | 650860 | 0.18 | 13070 | 0.00 | 13.70 |
| openbravo | pg_default | public | obmobc_logclient | 262868 | 0.07 | 273626 | 0.08 | 65 | 0.00 | 36 | 0.00 | 76.70 |
| openbravo | pg_default | public | fin_payment | 494984 | 0.14 | 10496 | 0.00 | 87.64 | ||||
| DB | Tablespace | Schema | Table | Ins | Upd | Del | Upd(HOT) | SeqScan | SeqFet | IxScan | IxFet |
|---|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | pg_temp_13 | ad_context_info | 74377 | 74376 | 74398 | 74397 | ||||
| openbravo | pg_default | profile | last_stat_indexes | 71002 | 1591 | 70987 | 184 | 1135912 | 43385 | 427597 | |
| openbravo | pg_default | public | obmobc_logclient | 73442 | 51110 | 1 | 2562917 | 2 | 118094 | ||
| obmobc_logclient(TOAST) | 2 | 9 | 70 | 105 | |||||||
| openbravo | pg_default | public | c_invoice | 4298 | 118443 | 3 | 21439 | 14 | 70196186 | 52316703 | 1839324424 |
| c_invoice(TOAST) | |||||||||||
| openbravo | pg_default | profile | last_stat_tables | 41449 | 3789 | 41443 | 43 | 184 | 663136 | 8708 | 4407900 |
| openbravo | pg_default | public | ad_ep_instance_para | 38833 | 38828 | 64956 | 300780 | ||||
| ad_ep_instance_para(TOAST) | |||||||||||
| openbravo | pg_default | public | c_import_entry | 12518 | 12518 | 12509 | 2657 | 46250 | 413310 | 282340 | |
| c_import_entry(TOAST) | 18442 | 18442 | 25038 | 91803 | |||||||
| openbravo | pg_default | public | m_stock_aux | 14008 | 34704 | 14008 | 25891 | 263995 | 152204 | ||
| m_stock_aux(TOAST) | |||||||||||
| openbravo | pg_default | public | m_storage_detail | 13 | 54449 | 2 | 37087 | 945 | 48446228 | 1137995 | 1774516 |
| m_storage_detail(TOAST) | |||||||||||
| openbravo | pg_default | public | m_transaction | 13639 | 29205 | 1191 | 1 | 30578658 | 150551 | 3493674 | |
| m_transaction(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 29335 | 28334 | 1518496 | 1347437 | ||||
| pg_statistic(TOAST) | 5988 | 5974 | 167351 | 330312 | |||||||
| openbravo | pg_default | public | c_orderline | 9264 | 27219 | 10 | 12212 | 362 | 1063408005 | 63574359 | 130466359 |
| c_orderline(TOAST) | |||||||||||
| openbravo | pg_default | public | c_import_entry_archive | 3931 | 2155 | 1 | 89703 | 13018 | 2155 | ||
| c_import_entry_archive(TOAST) | 15344 | 11643 | 94723 | 495447 | |||||||
| openbravo | pg_default | public | prsync_entry | 34 | 68 | 51 | 55 | 31 | 12102 | 256 | 188 |
| prsync_entry(TOAST) | 18111 | 14475 | 18 | 14475 | |||||||
| openbravo | pg_default | profile | last_stat_user_functions | 12420 | 1637 | 12420 | 71 | 391 | 372600 | ||
| last_stat_user_functions(TOAST) | |||||||||||
| openbravo | pg_default | pg_catalog | pg_class | 588 | 24962 | 569 | 23799 | 44559 | 200866096 | 2063264 | 1958060 |
| openbravo | pg_default | public | prpass_pass_inst | 9555 | 16518 | 3663 | 710 | 2072839545 | 13503192 | 1022981165 | |
| prpass_pass_inst(TOAST) | |||||||||||
| openbravo | pg_default | public | fact_acct | 20121 | 5262 | 257 | 1 | 38003019 | 35712 | 252045 | |
| fact_acct(TOAST) | |||||||||||
| openbravo | pg_default | public | m_productionline | 8168 | 16144 | 15346 | 1 | 20053252 | 2839521 | 9738365 | |
| m_productionline(TOAST) | |||||||||||
| openbravo | pg_default | public | fin_payment | 2946 | 20443 | 1 | 8159 | 6 | 37857499 | 85996 | 144695 |
| fin_payment(TOAST) | |||||||||||
| DB | Tablespace | Schema | Table | Upd | Upd(HOT) | Del | Vacuum | AutoVacuum | Analyze | AutoAnalyze |
|---|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_invoice | 118443 | 21439 | 3 | ||||
| c_invoice(TOAST) | ||||||||||
| openbravo | pg_default | pg_temp_13 | ad_context_info | 74376 | ||||||
| openbravo | pg_default | profile | last_stat_indexes | 1591 | 70987 | 155 | 46 | 23 | ||
| openbravo | pg_default | public | m_storage_detail | 54449 | 37087 | 2 | 2 | 10 | ||
| m_storage_detail(TOAST) | ||||||||||
| openbravo | pg_default | public | obmobc_logclient | 51110 | 1 | 1 | ||||
| obmobc_logclient(TOAST) | 9 | 1 | ||||||||
| openbravo | pg_default | public | m_stock_aux | 34704 | 25891 | 14008 | 103 | 179 | ||
| m_stock_aux(TOAST) | ||||||||||
| openbravo | pg_default | profile | last_stat_tables | 3789 | 43 | 41443 | 155 | 46 | 23 | |
| openbravo | pg_default | public | c_import_entry | 12518 | 12509 | 141 | 240 | |||
| c_import_entry(TOAST) | 18442 | 29 | ||||||||
| openbravo | pg_default | public | ad_ep_instance_para | 38828 | 557 | 754 | ||||
| ad_ep_instance_para(TOAST) | ||||||||||
| openbravo | pg_default | pg_catalog | pg_statistic | 29335 | 28334 | 1 | ||||
| pg_statistic(TOAST) | 5974 | 11 | ||||||||
| openbravo | pg_default | public | m_transaction | 29205 | 1191 | |||||
| m_transaction(TOAST) | ||||||||||
| openbravo | pg_default | public | c_orderline | 27219 | 12212 | 10 | ||||
| c_orderline(TOAST) | ||||||||||
| openbravo | pg_default | pg_catalog | pg_class | 24962 | 23799 | 569 | 9 | 24 | ||
| openbravo | pg_default | public | fin_payment | 20443 | 8159 | 1 | ||||
| fin_payment(TOAST) | ||||||||||
| openbravo | pg_default | public | c_order | 18473 | 10875 | 5 | ||||
| c_order(TOAST) | ||||||||||
| openbravo | pg_default | public | prpass_pass_inst | 16518 | 3663 | |||||
| prpass_pass_inst(TOAST) | ||||||||||
| openbravo | pg_default | public | m_productionline | 16144 | 15346 | |||||
| m_productionline(TOAST) | ||||||||||
| openbravo | pg_default | public | fin_finacc_transaction | 15363 | 2825 | 1 | ||||
| fin_finacc_transaction(TOAST) | ||||||||||
| openbravo | pg_default | public | prsync_entry | 68 | 55 | 51 | 1 | 1 | 1 | |
| prsync_entry(TOAST) | 14475 | 1 | ||||||||
| openbravo | pg_default | profile | last_stat_user_functions | 1637 | 71 | 12420 | 155 | 46 | 23 | |
| last_stat_user_functions(TOAST) | ||||||||||
| DB | Tablespace | Schema | Table | Size | Growth | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | fact_acct | 31 GB | 18 MB | 20121 | 5262 | 257 | |
| fact_acct(TOAST) | |||||||||
| openbravo | pg_default | public | c_order | 7750 MB | 14 MB | 4502 | 18473 | 5 | 10875 |
| c_order(TOAST) | |||||||||
| openbravo | pg_default | public | c_orderline | 8652 MB | 14 MB | 9264 | 27219 | 10 | 12212 |
| c_orderline(TOAST) | |||||||||
| openbravo | pg_default | public | m_productionline | 7840 MB | 9216 kB | 8168 | 16144 | 15346 | |
| m_productionline(TOAST) | |||||||||
| openbravo | pg_default | public | prpass_pass_inst | 6274 MB | 7768 kB | 9555 | 16518 | 3663 | |
| prpass_pass_inst(TOAST) | |||||||||
| openbravo | pg_default | public | c_invoiceline | 7416 MB | 5824 kB | 8894 | 3246 | 27 | 2521 |
| c_invoiceline(TOAST) | |||||||||
| openbravo | pg_default | public | m_inout | 4162 MB | 4784 kB | 4455 | 11642 | 1 | 6872 |
| m_inout(TOAST) | 30 MB | 96 kB | 44 | 36 | |||||
| openbravo | pg_default | public | m_inoutline | 5969 MB | 4624 kB | 9035 | 2501 | 6 | 2306 |
| m_inoutline(TOAST) | |||||||||
| openbravo | pg_default | public | fin_payment_schedule | 5096 MB | 4336 kB | 8695 | 10369 | 55 | 4168 |
| fin_payment_schedule(TOAST) | |||||||||
| openbravo | pg_default | public | c_import_entry_archive | 52 MB | 1792 kB | 3931 | 2155 | ||
| c_import_entry_archive(TOAST) | 999 MB | 1736 kB | 15344 | 11643 | |||||
| openbravo | pg_default | public | fin_finacc_transaction | 3419 MB | 2704 kB | 3215 | 15363 | 1 | 2825 |
| fin_finacc_transaction(TOAST) | |||||||||
| openbravo | pg_default | public | ad_audit_trail | 533 MB | 1656 kB | 4902 | |||
| ad_audit_trail(TOAST) | |||||||||
| openbravo | pg_default | public | m_productionplan | 1239 MB | 480 kB | 894 | |||
| m_productionplan(TOAST) | |||||||||
| openbravo | pg_default | public | obre_reservation | 160 kB | 8192 bytes | 337 | 1987 | 336 | 11 |
| obre_reservation(TOAST) | 344 kB | 160 kB | 3729 | 3726 | |||||
| openbravo | pg_default | public | prges_records | 103 MB | 64 kB | 17 | 36 | 24 | |
| prges_records(TOAST) | 536 kB | ||||||||
| openbravo | pg_default | pg_temp_4 | ad_context_info | 40 kB | 40 kB | 555 | 523 | ||
| openbravo | pg_default | pg_temp_13 | ad_context_info | 40 kB | 40 kB | 372 | 371 | ||
| openbravo | pg_default | pg_catalog | pg_statistic | 7040 kB | 8192 bytes | 29335 | 28334 | ||
| pg_statistic(TOAST) | 7288 kB | 5988 | 5974 | ||||||
| openbravo | pg_default | profile | last_stat_indexes | 2040 kB | 8192 bytes | 71002 | 1591 | 70987 | |
| openbravo | pg_default | pg_temp_8 | ad_context_info | 8192 bytes | 8192 bytes | 140 | 108 |
| DB | Tablespace | Schema | Table | Index | Scans | Blks | %Total |
|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_order | c_order_key | 68139490 | 272349842 | 3.03 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_orderline | 56912000 | 228448977 | 2.54 |
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_orderline | 56235182 | 225715571 | 2.51 |
| openbravo | pg_default | public | m_inout | m_inout_key | 55632343 | 222987039 | 2.48 |
| openbravo | pg_default | public | c_invoice | c_invoice_key | 52200823 | 210342150 | 2.34 |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 47531699 | 191537882 | 2.13 |
| openbravo | pg_default | public | c_orderline | c_orderline_key | 14434198 | 57722024 | 0.64 |
| openbravo | pg_default | public | fin_finacc_transaction | fin_finacc_transaction_key | 14221321 | 57021905 | 0.63 |
| openbravo | pg_default | public | prpass_pass_inst | prpass_pass_inst_orderline | 13445426 | 54030528 | 0.60 |
| openbravo | pg_default | public | c_invoice | c_invoice_client_org_date_doc | 81476 | 52226670 | 0.58 |
| openbravo | pg_default | public | c_order | c_order_client_org_date_docno | 50988 | 40176456 | 0.45 |
| openbravo | pg_default | public | c_orderline | c_orderline_product | 1465987 | 32770404 | 0.36 |
| openbravo | pg_default | public | c_bpartner | c_bpartner_key | 13555434 | 30158017 | 0.34 |
| openbravo | pg_default | public | ad_treenode | ad_treenode_tree_node_un | 860462 | 23166023 | 0.26 |
| openbravo | pg_default | public | m_inout | m_inout_order | 4968708 | 19944265 | 0.22 |
| openbravo | pg_default | public | m_product | m_product_key | 9208642 | 18456590 | 0.21 |
| openbravo | pg_default | public | prpass_pass_trans | prpass_pass_trans_inst | 2901624 | 11661489 | 0.13 |
| openbravo | pg_default | public | prpass_pass_inst | prpass_pass_inst_product | 23504 | 7311693 | 0.08 |
| openbravo | pg_default | public | fin_finacc_transaction | fin_finacc_tr_account_line | 20849 | 7235640 | 0.08 |
| openbravo | pg_default | public | m_product_trl | m_product_trl_product_langu_un | 5853573 | 5889499 | 0.07 |
| DB | Tablespace | Schema | Table | Index | Scans | Blk Reads | %Total | Hits(%) |
|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | c_invoice | c_invoice_client_org_date_doc | 81476 | 5420642 | 1.54 | 89.62 |
| openbravo | pg_default | public | c_order | c_order_client_org_date_docno | 50988 | 4188832 | 1.19 | 89.57 |
| openbravo | pg_default | public | m_inoutline | m_inoutline_orderline | 56912000 | 3225542 | 0.91 | 98.59 |
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_orderline | 56235182 | 3184020 | 0.90 | 98.59 |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 47531699 | 3017974 | 0.86 | 98.42 |
| openbravo | pg_default | public | prpass_pass_inst | prpass_pass_inst_product | 23504 | 2778270 | 0.79 | 62.00 |
| openbravo | pg_default | public | fin_finacc_transaction | fin_finacc_tr_account_line | 20849 | 2406221 | 0.68 | 66.74 |
| openbravo | pg_default | public | m_inout | m_inout_key | 55632343 | 1485630 | 0.42 | 99.33 |
| openbravo | pg_default | public | c_order | c_order_documentno_id | 2805 | 1194785 | 0.34 | 42.72 |
| openbravo | pg_default | public | prpass_pass_trans | prpass_pass_trans_inst | 2901624 | 1187477 | 0.34 | 89.82 |
| openbravo | pg_default | public | c_invoice | c_invoice_key | 52200823 | 1169439 | 0.33 | 99.44 |
| openbravo | pg_default | public | c_order | c_order_key | 68139490 | 877133 | 0.25 | 99.68 |
| openbravo | pg_default | public | c_orderline | c_orderline_key | 14434198 | 531426 | 0.15 | 99.08 |
| openbravo | pg_default | public | c_order | c_order_dateordered_id | 1065 | 293071 | 0.08 | 83.69 |
| openbravo | pg_default | public | prpass_pass_inst | prpass_pass_inst_orderline | 13445426 | 250734 | 0.07 | 99.54 |
| openbravo | pg_default | public | m_costing | m_costing_product_date | 31036 | 233429 | 0.07 | 94.70 |
| openbravo | pg_default | public | m_productionplan | m_productionplan_key | 1131343 | 221810 | 0.06 | 95.11 |
| openbravo | pg_default | public | c_order | em_obpos_order_docno_trgm | 272 | 200620 | 0.06 | 51.87 |
| openbravo | pg_default | public | prpass_timeslots_res | prpass_timeslots_res_key | 2841424 | 190539 | 0.05 | 95.62 |
| openbravo | pg_default | public | fin_finacc_transaction | fin_finacc_transaction_key | 14221321 | 186640 | 0.05 | 99.67 |
| DB | Tablespace | Schema | Table | Index | Index | Table | |||
|---|---|---|---|---|---|---|---|---|---|
| Size | Growth | Ins | Upd | Del | |||||
| openbravo | pg_default | public | fact_acct | fact_acct_key | 2660 MB | 15 MB | 19829 | 5234 | 257 |
| openbravo | pg_default | public | fact_acct | fact_acct_line_id | 2755 MB | 12 MB | 20121 | 5262 | 257 |
| openbravo | pg_default | public | fact_acct | fact_acct_table_record_id | 2986 MB | 7256 kB | 19752 | 5222 | 257 |
| openbravo | pg_default | public | fact_acct | fact_acct_group | 2493 MB | 5624 kB | 19584 | 5222 | 257 |
| openbravo | pg_default | public | c_invoice | c_invoice_bpartner | 645 MB | 4880 kB | 140 | 74884 | |
| openbravo | pg_default | public | c_orderline | em_obpos_orderedqty | 906 MB | 3504 kB | 9264 | 15007 | 10 |
| openbravo | pg_default | public | prpass_pass_inst | prpass_pass_inst_orderline | 792 MB | 2760 kB | 9555 | 12855 | |
| openbravo | pg_default | public | m_inout | m_inout_order | 430 MB | 2416 kB | 3584 | 3845 | 1 |
| openbravo | pg_default | public | c_invoice | c_invoice_updated | 241 MB | 1648 kB | 87 | 74613 | |
| openbravo | pg_default | public | m_productionline | m_productionline_prodplan | 1160 MB | 1480 kB | 7338 | 720 | |
| openbravo | pg_default | public | c_invoice | c_invoice_client_org_date_doc | 943 MB | 1400 kB | 4298 | 97004 | 3 |
| openbravo | pg_default | public | c_orderline | c_orderline_product | 857 MB | 960 kB | 5661 | 9632 | 5 |
| openbravo | pg_default | public | c_invoice | c_invoice_key | 404 MB | 920 kB | 4298 | 97004 | 3 |
| openbravo | pg_default | public | m_inout | m_inout_key | 400 MB | 600 kB | 4455 | 4770 | 1 |
| openbravo | pg_default | public | fin_finacc_transaction | fin_finacc_tr_account_line | 396 MB | 592 kB | 3215 | 12538 | 1 |
| openbravo | pg_default | public | c_order | c_order_documentno_id | 527 MB | 584 kB | 2711 | 4476 | 4 |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_context | 187 MB | 304 kB | 3116 | 51110 | |
| openbravo | pg_default | public | c_invoiceline | c_invoiceline_invoice | 800 MB | 144 kB | 859 | 99 | |
| openbravo | pg_default | public | c_orderline | c_orderline_key | 785 MB | 128 kB | 9264 | 15007 | 10 |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_pk | 241 MB | 96 kB | 17896 | 51110 | |
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 | obmobc_logclient | obmobc_logclient_log_idx | 6680 kB | 48 kB | 65708 | 51110 | |
| openbravo | pg_default | public | c_invoice | c_invoice_updated | 241 MB | 1648 kB | 87 | 74613 | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_context | 187 MB | 304 kB | 3116 | 51110 | |
| openbravo | pg_default | public | c_import_entry | em_prres_organization_idx | 1384 kB | 12518 | 12518 | 12509 | |
| openbravo | pg_default | public | fact_acct | fact_acct_line_id | 2755 MB | 12 MB | 20121 | 5262 | 257 |
| openbravo | pg_default | pg_catalog | pg_class | pg_class_tblspc_relfilenode_index | 320 kB | 397 | 579 | 375 | |
| openbravo | pg_default | public | ad_process_run | ad_process_run_ould_be_killed | 8192 bytes | 147 | 147 | ||
| openbravo | pg_default | public | c_file | c_file_record_idx | 16 MB | 6 | |||
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | to_char | 763455882 | 1325.86 | 1325.86 | 0.000 | 0.000 |
| openbravo | public | to_char | 605795928 | 860.59 | 860.59 | 0.000 | 0.000 |
| openbravo | public | cactl_calculate_consumption | 1284 | 411.18 | 411.15 | 0.320 | 0.320 |
| openbravo | public | to_char | 394291905 | 192.31 | 192.31 | 0.000 | 0.000 |
| openbravo | public | c_order_post1 | 1487 | 180.45 | 13.75 | 0.121 | 0.009 |
| openbravo | public | c_order_post | 1483 | 180.28 | 0.04 | 0.122 | 0.000 |
| openbravo | public | c_order_post1 | 1483 | 180.24 | 0.03 | 0.122 | 0.000 |
| openbravo | public | ad_extension_point_handler | 8578 | 83.18 | 3.59 | 0.010 | 0.000 |
| openbravo | profile | take_sample | 23 | 81.93 | 0.01 | 3.562 | 0.001 |
| openbravo | profile | take_sample_subset | 23 | 81.92 | 0.07 | 3.562 | 0.003 |
| openbravo | profile | take_sample | 23 | 81.85 | 3.13 | 3.559 | 0.136 |
| openbravo | public | pricm_createproductprice | 3282 | 75.24 | 34.30 | 0.023 | 0.010 |
| openbravo | profile | dblink | 621 | 69.95 | 69.95 | 0.113 | 0.113 |
| openbravo | profile | collect_pg_stat_statements_stats | 22 | 60.91 | 0.86 | 2.769 | 0.039 |
| openbravo | public | c_invoice_create | 1325 | 60.14 | 8.36 | 0.045 | 0.006 |
| openbravo | public | c_invoice_post | 1406 | 55.70 | 24.31 | 0.040 | 0.017 |
| openbravo | public | to_date | 17213966 | 43.35 | 43.35 | 0.000 | 0.000 |
| openbravo | public | cactl_ep_before_order_price | 298 | 38.47 | 38.45 | 0.129 | 0.129 |
| openbravo | public | to_number | 24355486 | 37.72 | 37.72 | 0.000 | 0.000 |
| openbravo | public | m_inout_create | 1141 | 29.79 | 0.03 | 0.026 | 0.000 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | to_char | 763455882 | 1325.86 | 1325.86 | 0.000 | 0.000 |
| openbravo | public | to_char | 605795928 | 860.59 | 860.59 | 0.000 | 0.000 |
| openbravo | public | to_char | 394291905 | 192.31 | 192.31 | 0.000 | 0.000 |
| openbravo | public | to_number | 24355486 | 37.72 | 37.72 | 0.000 | 0.000 |
| openbravo | public | to_date | 17213966 | 43.35 | 43.35 | 0.000 | 0.000 |
| openbravo | public | to_char | 8578864 | 4.68 | 4.68 | 0.000 | 0.000 |
| openbravo | public | substract_days | 2531992 | 1.96 | 1.96 | 0.000 | 0.000 |
| openbravo | public | ad_istriggerenabled | 1784595 | 11.50 | 11.50 | 0.000 | 0.000 |
| openbravo | public | add_days | 1316284 | 1.71 | 1.71 | 0.000 | 0.000 |
| openbravo | public | ad_isorgincluded | 1179783 | 13.06 | 13.06 | 0.000 | 0.000 |
| openbravo | public | to_date | 834759 | 1.87 | 1.87 | 0.000 | 0.000 |
| openbravo | public | uuid_generate_v4 | 585087 | 2.13 | 2.13 | 0.000 | 0.000 |
| openbravo | public | ad_org_isinnaturaltree | 483372 | 12.07 | 2.38 | 0.000 | 0.000 |
| openbravo | public | get_uuid | 195029 | 4.16 | 2.02 | 0.000 | 0.000 |
| openbravo | public | to_char | 193548 | 0.31 | 0.31 | 0.000 | 0.000 |
| openbravo | public | trunc | 149175 | 0.35 | 0.35 | 0.000 | 0.000 |
| openbravo | public | trunc | 113901 | 0.23 | 0.23 | 0.000 | 0.000 |
| openbravo | public | round | 105237 | 0.20 | 0.20 | 0.000 | 0.000 |
| openbravo | public | obequals | 61131 | 0.25 | 0.25 | 0.000 | 0.000 |
| openbravo | public | prouti_qtyremainingorderline | 59309 | 6.89 | 6.89 | 0.000 | 0.000 |
| DB | Schema | Function | Executions | Time (s) | |||
|---|---|---|---|---|---|---|---|
| Total | Self | Mean | Mean self | ||||
| openbravo | public | pricm_productprice | 3359 | 76.03 | 0.09 | 0.023 | 0.000 |
| openbravo | public | m_productionline_trg | 24398 | 18.50 | 3.47 | 0.001 | 0.000 |
| openbravo | public | cactl_m_prodline_losses_trg | 8210 | 11.49 | 2.66 | 0.001 | 0.000 |
| openbravo | public | c_orderline_trg2 | 36493 | 10.62 | 3.25 | 0.000 | 0.000 |
| openbravo | public | au_c_order_trg | 22973 | 9.23 | 8.89 | 0.000 | 0.000 |
| openbravo | public | m_transaction_trg | 42862 | 8.74 | 4.89 | 0.000 | 0.000 |
| openbravo | public | c_invoiceline_trg2 | 12167 | 8.25 | 3.00 | 0.001 | 0.000 |
| openbravo | public | cactl_product_org | 24135 | 7.96 | 1.27 | 0.000 | 0.000 |
| openbravo | public | c_invoice_trg | 125565 | 4.54 | 3.74 | 0.000 | 0.000 |
| openbravo | public | aeatsii_invoice_trg | 125562 | 4.37 | 2.12 | 0.000 | 0.000 |
| openbravo | public | c_orderline2_trg | 36493 | 3.84 | 3.56 | 0.000 | 0.000 |
| openbravo | public | c_invoice_trg2 | 122515 | 2.81 | 1.61 | 0.000 | 0.000 |
| openbravo | public | c_orderlinetax_trg | 12106 | 2.49 | 2.04 | 0.000 | 0.000 |
| openbravo | public | c_invoicelinetax_trg | 10683 | 2.47 | 1.60 | 0.000 | 0.000 |
| openbravo | public | c_orderline_trg | 36466 | 2.19 | 1.94 | 0.000 | 0.000 |
| openbravo | public | priuti_c_invoice_ref_trg | 122515 | 2.14 | 1.46 | 0.000 | 0.000 |
| openbravo | public | intr_c_orderline_trg | 36456 | 1.90 | 0.69 | 0.000 | 0.000 |
| openbravo | public | m_inoutline_trg | 11542 | 1.87 | 1.64 | 0.000 | 0.000 |
| openbravo | public | c_ordline_chk_restrictions_trg | 36466 | 1.82 | 1.70 | 0.000 | 0.000 |
| openbravo | public | pruti_inherit_invoice_contact | 122549 | 1.55 | 0.89 | 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 | 557 | 38833 | 38828 | |||
| openbravo | pg_default | profile | last_stat_tables | 155 | 41449 | 3789 | 41443 | 43 | |
| openbravo | pg_default | profile | last_stat_indexes | 155 | 71002 | 1591 | 70987 | ||
| openbravo | pg_default | profile | last_stat_user_functions | 155 | 12420 | 1637 | 12420 | 71 | |
| openbravo | pg_default | public | c_import_entry | 141 | 12518 | 12518 | 12509 | ||
| openbravo | pg_default | public | m_stock_aux | 103 | 14008 | 34704 | 14008 | 25891 | |
| openbravo | pg_default | public | ad_sequence | 67 | 12801 | 12689 | |||
| openbravo | pg_default | public | obpos_applications | 56 | 6261 | 6261 | |||
| openbravo | pg_default | public | obre_reservation | 40 | 337 | 1987 | 336 | 11 | |
| openbravo | pg_default | public | fin_financial_account | 38 | 3080 | 3080 | |||
| openbravo | pg_default | public | obre_resource | 10 | 2162 | 2150 | |||
| openbravo | pg_default | pg_catalog | pg_class | 9 | 588 | 24962 | 569 | 23799 | |
| openbravo | pg_default | public | m_transaction_last | 6 | 4 | 12174 | |||
| openbravo | pg_default | pg_catalog | pg_type | 2 | 673 | 660 | |||
| openbravo | pg_default | pg_catalog | pg_rewrite | 2 | 218 | 2 | 218 | 1 | |
| openbravo | pg_default | public | ad_element_trl | 2 | 2 | 10246 | 8414 | ||
| openbravo | pg_default | public | ad_error_log | 2 | 4529 | 4516 | |||
| openbravo | pg_default | public | ad_menu_trl | 2 | 2 | 1251 | 1093 | ||
| openbravo | pg_default | public | ad_message_trl | 2 | 11 | 12828 | 11682 | ||
| openbravo | pg_default | public | ad_process_trl | 2 | 2 | 770 | 719 |
| DB | Tablespace | Schema | Table | Analyze count | Autoanalyze count | Ins | Upd | Del | Upd(HOT) |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | ad_ep_instance_para | 754 | 38833 | 38828 | |||
| openbravo | pg_default | public | c_import_entry | 240 | 12518 | 12518 | 12509 | ||
| openbravo | pg_default | public | m_stock_aux | 179 | 14008 | 34704 | 14008 | 25891 | |
| openbravo | pg_default | public | ad_sequence | 125 | 12801 | 12689 | |||
| openbravo | pg_default | public | obpos_applications | 96 | 6261 | 6261 | |||
| openbravo | pg_default | profile | last_stat_tables | 46 | 23 | 41449 | 3789 | 41443 | 43 |
| openbravo | pg_default | profile | last_stat_indexes | 46 | 23 | 71002 | 1591 | 70987 | |
| openbravo | pg_default | profile | last_stat_user_functions | 46 | 23 | 12420 | 1637 | 12420 | 71 |
| openbravo | pg_default | public | fin_financial_account | 47 | 3080 | 3080 | |||
| openbravo | pg_default | public | obre_reservation | 47 | 337 | 1987 | 336 | 11 | |
| openbravo | pg_default | pg_catalog | pg_class | 24 | 588 | 24962 | 569 | 23799 | |
| openbravo | pg_default | public | obre_resource | 23 | 2162 | 2150 | |||
| openbravo | pg_default | profile | last_stat_tablespaces | 20 | 40 | 40 | |||
| openbravo | pg_default | public | ad_session | 14 | 152 | 10316 | 10053 | ||
| openbravo | pg_default | public | m_transaction_last | 11 | 4 | 12174 | |||
| openbravo | pg_default | public | m_storage_detail | 10 | 13 | 54449 | 2 | 37087 | |
| openbravo | pg_default | public | c_bpartner | 7 | 5979 | 5974 | |||
| openbravo | pg_default | public | ad_process_request | 1 | 5 | 94 | 532 | 306 | 514 |
| openbravo | pg_default | pg_catalog | pg_type | 5 | 673 | 660 | |||
| openbravo | pg_default | public | ad_error_log | 4 | 4529 | 4516 |
| DB | Tablespace | Schema | Table | Index | ~Vacuum bytes | Vacuum cnt | Autovacuum cnt | IX size | Relsize |
|---|---|---|---|---|---|---|---|---|---|
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_timestamp | 290 MB | 1 | 290 MB | 1402 MB | |
| openbravo | pg_default | public | m_stock_aux | m_stock_aux_aux_id | 246 MB | 99 | 2544 kB | 4400 kB | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_pk | 241 MB | 1 | 241 MB | 1402 MB | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_cache | 210 MB | 1 | 210 MB | 1402 MB | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_term_date | 202 MB | 1 | 202 MB | 1402 MB | |
| openbravo | pg_default | public | c_import_entry | em_prres_organization_idx | 191 MB | 141 | 1384 kB | 1013 kB | |
| openbravo | pg_default | public | obmobc_logclient | obmobc_logclient_context | 187 MB | 1 | 187 MB | 1402 MB | |
| openbravo | pg_default | public | ad_ep_instance_para | ad_ep_instance_para_key | 187 MB | 557 | 344 kB | 32 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_key | 131 MB | 141 | 952 kB | 1013 kB | |
| openbravo | pg_default | public | c_import_entry | em_prres_typeofdata_idx | 124 MB | 141 | 904 kB | 1013 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_type_status | 118 MB | 141 | 856 kB | 1013 kB | |
| openbravo | pg_default | public | c_import_entry | em_obpos_application_fk | 108 MB | 141 | 784 kB | 1013 kB | |
| openbravo | pg_default | public | c_import_entry | c_import_entry_idx | 94 MB | 141 | 680 kB | 1013 kB | |
| openbravo | pg_default | profile | last_stat_indexes | pk_last_stat_indexes | 81 MB | 152 | 548 kB | 2038 kB | |
| openbravo | pg_default | public | m_stock_aux | m_stock_aux_storage_detail_id | 70 MB | 99 | 728 kB | 4400 kB | |
| openbravo | pg_default | public | m_stock_aux | m_stock_aux_key | 60 MB | 99 | 616 kB | 4400 kB | |
| openbravo | pg_default | profile | last_stat_tables | pk_last_stat_tables | 43 MB | 148 | 296 kB | 1552 kB | |
| openbravo | pg_default | public | m_storage_detail | m_storage_detail_un | 40 MB | 2 | 20 MB | 29 MB | |
| openbravo | pg_default | public | m_storage_detail | m_storage_detail_uom | 28 MB | 2 | 14 MB | 29 MB | |
| openbravo | pg_default | public | m_storage_detail | m_storagedet_qtyorderonhand | 26 MB | 2 | 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 | pg_catalog | pg_attribute | 37245 | 7213 | 16 | 2026-07-15 06:31:16.739378+01 | 6840 kB |
| openbravo | pg_toast | pg_toast_2619 | 2467 | 470 | 16 | 2026-07-15 21:00:27.753248+01 | 7288 kB |
| openbravo | pg_catalog | pg_statistic | 10728 | 1898 | 15 | 2026-07-15 10:48:34.732058+01 | 7040 kB |
| openbravo | profile | sample_stat_tables | 27377 | 4693 | 14 | 2026-07-14 23:00:55.442262+01 | 8656 kB |
| openbravo | pg_toast | pg_toast_227856 | 2165 | 306 | 12 | 2026-06-29 05:14:25.739162+01 | 6104 kB |
| openbravo | pg_toast | pg_toast_232469 | 13479 | 1800 | 11 | 2026-05-19 02:38:47.391039+01 | 30 MB |
| openbravo | public | fin_finacc_transaction | 6603610 | 660235 | 9 | 2026-04-02 14:41:49.577329+01 | 3419 MB |
| openbravo | public | c_invoice | 7024632 | 770808 | 9 | 2026-07-08 00:23:08.546646+01 | 7098 MB |
| openbravo | public | m_product | 15673 | 1730 | 9 | 2026-02-20 19:44:18.669967+00 | 10232 kB |
| openbravo | public | c_order | 7278412 | 664438 | 8 | 7750 MB | |
| openbravo | public | m_requisitionline | 318169 | 30760 | 8 | 2026-07-06 12:22:50.3815+01 | 184 MB |
| openbravo | public | ad_process_run | 21902 | 1505 | 6 | 2026-06-01 11:38:18.108022+01 | 22 MB |
| openbravo | public | fact_acct | 38002245 | 2751788 | 6 | 2025-07-31 23:28:10.407953+01 | 31 GB |
| openbravo | public | c_orderline | 14399212 | 738544 | 4 | 8652 MB | |
| openbravo | public | prpass_pass_inst | 13127327 | 627965 | 4 | 6274 MB | |
| openbravo | pg_toast | pg_toast_230248 | 340991 | 11643 | 3 | 2026-05-19 02:10:58.737588+01 | 999 MB |
| openbravo | public | m_inout | 7252288 | 244603 | 3 | 2025-10-20 23:54:32.431835+01 | 4162 MB |
| openbravo | public | fin_payment_schedule | 14160904 | 434711 | 2 | 5096 MB | |
| openbravo | public | c_import_entry_archive | 91995 | 2155 | 2 | 2025-12-16 22:55:58.255774+00 | 52 MB |
| openbravo | public | m_productionline | 20063330 | 209468 | 1 | 7840 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 | 10728 | 1898 | 9734449 | 77098 | 7040 kB | |
| openbravo | public | prges_records | 70526 | 1023 | 6833 | 9 | 2026-03-31 15:00:51.685568+01 | 103 MB |
| openbravo | public | ad_audit_trail | 2115602 | 84 | 177952 | 8 | 2026-06-21 20:32:38.637677+01 | 533 MB |
| openbravo | public | c_invoice | 7024632 | 770808 | 678192 | 8 | 2026-07-10 16:34:36.965521+01 | 7098 MB |
| openbravo | public | m_productionline | 20063330 | 209468 | 1723908 | 8 | 2026-04-18 16:29:40.193815+01 | 7840 MB |
| openbravo | public | m_requisitionline | 318169 | 30760 | 29311 | 8 | 2026-07-12 13:22:28.736582+01 | 184 MB |
| openbravo | public | prpass_pass_inst | 13127327 | 627965 | 1201475 | 8 | 2026-04-13 09:36:44.580373+01 | 6274 MB |
| openbravo | pg_catalog | pg_attribute | 37245 | 7213 | 3500 | 7 | 2026-07-15 13:32:06.184227+01 | 6840 kB |
| openbravo | public | fin_payment_schedule | 14160904 | 434711 | 1071696 | 7 | 2026-04-22 11:37:34.369148+01 | 5096 MB |
| openbravo | profile | sample_stat_tables | 27377 | 4693 | 2107 | 6 | 2026-07-15 20:00:26.61707+01 | 8656 kB |
| openbravo | public | m_product | 15673 | 1730 | 1040 | 5 | 2026-07-13 10:43:57.196489+01 | 10232 kB |
| openbravo | public | fin_finacc_transaction | 6603610 | 660235 | 329970 | 4 | 2026-06-27 12:53:00.341557+01 | 3419 MB |
| openbravo | public | c_order | 7278412 | 664438 | 376055 | 4 | 2026-06-29 09:41:55.68684+01 | 7750 MB |
| openbravo | public | c_invoiceline | 14237249 | 48170 | 583533 | 4 | 2026-02-28 09:04:55.209925+00 | 7416 MB |
| openbravo | public | c_file | 268670 | 193 | 9192 | 3 | 2026-02-09 12:48:30.95508+00 | 96 MB |
| openbravo | public | m_inoutline | 14239426 | 28195 | 558032 | 3 | 2026-03-06 11:59:32.517041+00 | 5969 MB |
| openbravo | public | fact_acct | 38002245 | 2751788 | 906008 | 2 | 2026-06-25 13:36:17.490096+01 | 31 GB |
| openbravo | public | c_orderline | 14399212 | 738544 | 363559 | 2 | 2026-07-06 00:03:35.926283+01 | 8652 MB |
| openbravo | public | m_productionplan | 3449100 | 96 | 99570 | 2 | 2026-02-28 13:31:59.297829+00 | 1239 MB |
| openbravo | public | ad_process_run | 21902 | 1505 | 372 | 1 | 2026-07-15 17:04:25.208173+01 | 22 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 | |||