Commit Graph

3178 Commits

Author SHA1 Message Date
Carlos Ruiz b2d33a6765
IDEMPIERE-5451 Create a form SQL Query - similar to SQL process to execute queries (FHCA-3849) (#1539)
- move scripts to release-9
2022-10-20 16:23:34 +02:00
Carlos Ruiz e881e0313a
IDEMPIERE-5451 Create a form SQL Query - similar to SQL process to execute queries (FHCA-3849) (#1538)
- add SysConfig keys
2022-10-20 16:16:25 +02:00
Carlos Ruiz 67c9cb7abc
IDEMPIERE-5451 Create a form SQL Query - similar to SQL process to execute queries (FHCA-3849) (#1533)
* IDEMPIERE-5451 Create a form SQL Query - similar to SQL process to execute queries (FHCA-3849)

* - fix wrong default in SysConfig
* - remove unnecessary annotation
* - process the query in a read-only transaction
* - commit not needed since this is readonly
2022-10-20 15:37:28 +02:00
Carlos Ruiz 45a1b4ba4d
IDEMPIERE-5450 Improve misleading name of SysConfig (#1532) 2022-10-17 16:58:19 +02:00
Carlos Ruiz 7ffb18b8e2
IDEMPIERE-5450 Form SQL Process has security issues (#1528)
* IDEMPIERE-5450 Form SQL Process has security issues

* - fix javadoc

* - remove unnecessary code

* - minor improvement

* - improve discovery of single word commands
- avoids the need of space in the SysConfig key
2022-10-16 22:21:05 +08:00
Carlos Ruiz d421dba94e
IDEMPIERE-5445 Implement multiplier and rounding for financial reports (#1524)
* IDEMPIERE-5445 Implement multiplier and rounding for financial reports

* - Improve loop
2022-10-16 11:29:12 +02:00
Peter Takács 5cd7149664
IDEMPIERE-5418 - Add Translation for AD_ChartDatasource (#1479)
* IDEMPIERE-5418 - Add Translation for AD_ChartDatasource

* IDEMPIERE-5418 - fixes on translation tab

* IDEMPIERE-5418 - fix: added primary key

* IDEMPIERE-5418 - pr1 patch
2022-10-13 15:12:18 +02:00
hengsin e6eb86a1c5
IDEMPIERE-5447 Add unit test for Merge form (#1523)
* IDEMPIERE-5447 Add unit test for Merge form

* IDEMPIERE-5447 Add unit test for Merge form

- Merge patch from Carlos
2022-10-12 16:02:56 +08:00
Peter Takács a96c6e482d
IDEMPIERE-5432 - Performance Measure Calculation - Improve SQL Definition (#1500)
* IDEMPIERE-5432 - Performance Measure Calculation - Improve SQL Definition

* IDEMPIERE-5432 - IDEMPIERE-5432_PR1 patch
2022-10-07 14:01:12 +08:00
Deepak Pansheriya abae9f221d
IDEMPIERE-5349: Adding AlwaysUpdatableLogic on Column and Field. (#1408)
* IDEMPIERE-5349: Adding AlwaysUpdatableLogic on Column and Field.

* IDEMPIERE-5349: Making Always Updatable logic to work when isAlwaysUpdatable is false and iAlwaysUpdatable made higher priority

* IDEMPIERE-5349: fixing error SP2-0027 in oracle

* IDEMPIERE-5349 : Fixing AlwaysUpdatableLogic not set when isAlwaysUpdatableLogic is null

* IDEMPIERE-5349 : renaming migration script and updatong AD_Field_V and AD_Field_VT
2022-10-06 13:53:32 +08:00
Carlos Ruiz 51841d0a39
Minor - solve two new eclipse 2022-09 warnings (#1515) 2022-10-06 11:48:13 +08:00
Carlos Ruiz d33caf9807
IDEMPIERE-5259 fix "Msg.getMsg: NOT found: Label" error (#1516) 2022-10-06 11:47:35 +08:00
hengsin 476e9ab71c
IDEMPIERE-5396 Replace CreateFrom form with Info Window Process (#1514)
- Fix Default AD_InfoWindow_ID value of AD_Column
2022-10-05 11:00:42 +02:00
Carlos Ruiz bc9f0433a2
IDEMPIERE-5408 move scripts to release9 (#1513) 2022-10-04 18:03:25 +02:00
Carlos Ruiz c1a1045d87
IDEMPIERE-5408 Allow or enforce login with specific tenant (FHCA-3823) (#1498)
* IDEMPIERE-5408 Allow or enforce login with specific tenant (FHCA-3823)

- Add column AD_Client.LoginPrefix

* - Implement logic to manage login prefix
- Add SysConfig keys LOGIN_PREFIX_SEPARATOR and LOGIN_WITH_TENANT_PREFIX

* - Rename methods as suggested by Heng Sin

* IDEMPIERE-5408 Allow or enforce login with specific tenant (FHCA-3823)

For security reasons is better to ask for MFA before showing additional information from the user.
Refactoring the panels to show the MFA panel as soon as the tenant is defined.

* - Add uniqueness validations on tenant creation

* - Fix the Forgot My Password functionality

* - Fix the Change Expired Password functionality

* - minor javadoc improvement
- remove a redundant comment, the method is already mark as deprecated

Co-authored-by: hengsin <hengsin@gmail.com>
2022-10-04 11:14:05 +02:00
Layda Salas dbcfd9af14
IDEMPIERE-5437 Improve description for SysConfig SYSTEM_NATIVE_SEQUEN… (#1511)
* IDEMPIERE-5437 Improve description for SysConfig SYSTEM_NATIVE_SEQUENCE #resolve

* IDEMPIERE-5437 Improve description for SysConfig SYSTEM_NATIVE_SEQUENCE #resolve

* revert unwanted changes in launcher

* revert unwanted changes in launcher

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2022-09-30 12:31:33 +02:00
Nicolas Micoud c9005bd601
IDEMPIERE-5245: Fix missing capitals on first letter of elements starting with "Date..." (#1509)
https://idempiere.atlassian.net/browse/IDEMPIERE-5245
2022-09-30 12:04:13 +02:00
Nicolas Micoud 297dbc73df
IDEMPIERE-5438: Web Service Security > Access tab should allow to sel… (#1506)
* IDEMPIERE-5438: Web Service Security > Access tab should allow to select WS roles only

https://idempiere.atlassian.net/browse/IDEMPIERE-5438

* IDEMPIERE-5438: Web Service Security > Access tab should allow to select WS roles only

Role with RoleType = null can also be used for WS, so must be included in available roles

Co-Authored-By: Carlos Ruiz <carg67@gmail.com>

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2022-09-30 12:00:55 +02:00
Nicolas Micoud 98c9dfc844
IDEMPIERE-5434 : Allow to define db view component with DISTINCT (#1505)
https://idempiere.atlassian.net/browse/IDEMPIERE-5434
2022-09-30 13:52:43 +08:00
Nicolas Micoud 011ac10a4f
IDEMPIERE-5243: More columns to increase length - AD_Val_Rule.Code to 4000 (#1507)
https://idempiere.atlassian.net/browse/IDEMPIERE-5243
2022-09-30 10:33:12 +08:00
Carlos Ruiz cdf36a785f
IDEMPIERE-4297 GardenWorld Periods 2023 to 2030 (#1491) 2022-09-21 13:44:56 +08:00
Elaine Tan 0b8b7da8e5
IDEMPIERE-5396 Replace CreateFrom form with Info Window Process (#1469)
* IDEMPIERE-5396 Replace CreateFrom form with Info Window Process
2022-09-19 18:30:24 +08:00
Carlos Ruiz 08c61a7207
IDEMPIERE-3340 Fix issue not allowing to delete a user (#1485) 2022-09-14 10:26:00 +08:00
Carlos Ruiz 52e5e17fed
IDEMPIERE-5354 Manage use case for microsoft OAuth2 preferred_username (FHCA-3757) (#1483)
* IDEMPIERE-5354 Manage use case for microsoft OAuth2 preferred_username (FHCA-3757)

* IDEMPIERE-5354 Manage use case for microsoft OAuth2 preferred_username (FHCA-3757)
2022-09-13 18:57:13 +02:00
Carlos Ruiz 3c69ba56a4
IDEMPIERE-5415 Incomplete process log when output is > 2000 chars (#1476) 2022-09-11 15:22:52 +08:00
Jasper Siepkes 861e3ad01f
IDEMPIERE-5013 Implement HikariCP as a replacement for c3p0 (#926)
* Replaced PostgreSQL and Oracle connection pools with HikariCP.

Replaced C3P0 with HikariCP. HikariCP is a Apache licensed connection pool with substantially better performance and better resilience to failure (DB disconnects, etc.) then C3P0. Read more about it here: https://github.com/brettwooldridge/HikariCP .

Cleaned up the `getCachedConnection` method. With HikariCP there is no need to retry to obtain a connection since getting an connection will block until a free connection is available or until a timeout is reached (default 30 seconds) at which point an `SQLException` is thrown. This also removed calling `Runtime.getRuntime().runFinalization();`. HikariCP is currently configured to detect / log leaks when a connection hasn't returned to the pool for longer then 5 minutes.

Loading of pool config properties was cleaned up. Defaults are now loaded from a single file instead of defaults coming from both file and hardcoded properties. It is now also possible to specify any HikariCP property in the user pool property file.

Initialization of the datasource must happen in the `getDataSource()` method because at object construction not all JDBC config is known. However this method could (as far as I could tell) be called concurrently from multiple threads but had no mechanism to prevent initializing the DB pool multiple times. The variable in which the pool itself was stored (`m_ds`) also was not marked volatile or immutable which could lead to visibility issues. Instead of lazy initialization of the pool in the `getDataSource()` method the pool could probably better be initialized at object construction. However I wasn't able to achieve that without breakage therefor I made the initialization mechanism work correctly with concurrent invocations.

Various config options such as the `MaxStatementsPerConnection` options were removed because HikariCP doesn't support them.

* (Re)added Sequence time-out.
2022-09-10 12:21:57 +02:00
Peter Takács 005a1847e8
IDEMPIERE-5412 - Improve Dashboard Theme Look (#1471)
* IDEMPIERE-5412 - Improve Dashboard Theme Look

* IDEMPIERE-5412 - added message: NoDataAvailable

* IDEMPIERE-5412 - update default theme version
2022-09-09 14:55:54 +08:00
Peter Takács 27d01814e7
IDEMPIERE-5400 - Gauge Indicator Style and Color Improvement (#1470)
* IDEMPIERE-5400 - Gauge Indicator Style and Color Improvement

* IDEMPIERE-5400 - patch pr1470
2022-09-09 14:14:50 +08:00
Peter Takács 1f4a23657a
IDEMPIERE-5400 - Dashboard Goal Content should render as single Gauge Indicator (#1458)
* IDEMPIERE-5400 - Dashboard Goal Content should render as single Gauge Indicator

* IDEMPIERE-5400 - better css responsivity

* IDEMPIERE-5400 - add update goal

* IDEMPIERE-5400 - fixes

* IDEMPIERE-5400 - resolved conflict, migration fix

* IDEMPIERE-5400 - fix bad merge
2022-09-07 21:40:29 +08:00
Peter Takács ee3476c3eb
IDEMPIERE-5409 - Dashboard Content - Maximizable checkbox (#1467)
* IDEMPIERE-5409 - Dashboard Content - Maximizable checkbox

* IDEMPIERE-5409 - IsMaximizable default 'Y'

* IDEMPIERE-5393 - fixes

* IDEMPIERE-5409 - fixed script name
2022-09-07 17:00:18 +08:00
Nicolas Micoud f22d2a512f
IDEMPIERE-5342 : Increase remaining ProfileInfo columns to 4000 (#1459)
* IDEMPIERE-5342 : Increase remaining ProfileInfo columns to 4000

https://idempiere.atlassian.net/browse/IDEMPIERE-1575

* IDEMPIERE-5342 : Increase remaining ProfileInfo columns to 4000 (to v9)

moving from v10 to v9
2022-09-02 13:32:15 +02:00
Carlos Ruiz 8cd20b9e88
IDEMPIERE-5399 Data type Time is mostly useless (#1456) 2022-08-30 20:14:17 +08:00
Nicolas Micoud 79d9efb8f5
IDEMPIERE-5395 : Validation Rules at Client level (#1451) 2022-08-30 13:25:01 +02:00
Peter Takács e528c6f8cb
IDEMPIERE-5389 - Dashboard row layout (#1448)
* IDEMPIERE-5389 - Dashboard row layout

* IDEMPIERE-5389 - taking changes related to ticket 5393

* IDEMPIERE-5389 - added Flex Grow to Preference

* IDEMPIERE-5389 - fixing gadget heights

* IDEMPIERE-5389 - center alignment for Status Line

* IDEMPIERE-5389 - fall back to column layout

* IDEMPIERE-5389 - pr1448 patch

* IDEMPIERE-5389 - FixOracleMigration patch
2022-08-30 10:11:42 +02:00
Peter Takács 0aaf904e34
IDEMPIERE-5393 - Allow rendering status line as widget/gadget in dashboard (#1449)
* IDEMPIERE-5393 - Allow rendering status line as widget/gadget in dashboard

* IDEMPIERE-5393 - css class for status line

* IDEMPIERE-5393 - update default theme version
2022-08-24 15:49:06 +08:00
Peter Takács e670ebbd14
IDEMPIERE-5302 - Drill Assistant Feature with re-generated migration scripts (#1390)
* IDEMPIERE-5302 - Drill Assistant Feature with re-generated migration scripts

* IDEMPIERE-5302 - added IsShowInDrillOptions, ID fixes

* IDEMPIERE-5302 - added IsShowInDrillOptions default Y

* IDEMPIERE-5302 - creating Table Print Formats on Run Report

* IDEMPIERE-5302 - applied pr1390_fixes patch

* IDEMPIERE-5302 - applied pr1390_badimports patch
2022-08-17 18:08:45 +08:00
Layda Salas 05dcc275a9
IDEMPIERE-5372 Wrong default for IsApproved column on C_Order, C_Invo… (#1436)
* IDEMPIERE-5372 Wrong default for IsApproved column on C_Order, C_Invoice and C_CashPlan #resolve

* IDEMPIERE-5372 Wrong default for IsApproved column on C_Order, C_Invoice and C_CashPlan #resolve
2022-08-12 19:20:58 +02:00
Carlos Ruiz 5e5c977733
IDEMPIERE-5382 Allow just one MFA registration per mechanism (FHCA-3822) (#1439) 2022-08-12 17:15:28 +08:00
Alan Lescano 11962e1713
IDEMPIERE-5259 Labels feature (#1357)
* IDEMPIERE-5259 Labels feature
* IDEMPIERE-5259 Update the theme version timestamp
* IDEMPIERE-5259 Better javadoc
* Update 202205131118_IDEMPIERE-5259.sql
* Update 202205131118_IDEMPIERE-5259.sql
* IDEMPIERE-5259 New window Label Assignment
* IDEMPIERE-5259 Toggle issue
* IDEMPIERE-5259 MSysConfig is ordered alphabetically
* IDEMPIERE-5259 Default SysConfig
* IDEMPIERE-5259 Avoid duplicated records
Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2022-08-01 21:51:38 +02:00
Peter Takács c62a9ad066
IDEMPIERE-1965 - Implement Generate Invoices (manual) as Info Window (#1400)
* IDEMPIERE-1965 - Implement Generate Invoices (manual) as Info Window
* IDEMPIERE-1965 - fixes
* IDEMPIERE-1965 - Deprecate Form
* IDEMPIERE-1965 - backwards compatibility
* IDEMPIERE-1965 - vendor RMA form legacy
* IDEMPIERE-1965 - merge patch
* IDEMPIERE-1965 - 1965_PR patch
2022-08-01 20:41:39 +02:00
hengsin 9f22430aad
IDEMPIERE-5359 Unit test not working with Oracle (#1414) 2022-07-31 19:22:06 +02:00
Peter Takács 5918702166
IDEMPIERE-1963 - vendor RMA form legacy (#1409) 2022-07-25 16:13:56 +08:00
Carlos Ruiz cd42ba5220
IDEMPIERE-5353 Entity type field in the Column tab becomes read-only when you enter a wrong value (#1405)
IDEMPIERE-5353 # resolve
2022-07-21 17:08:05 +02:00
Nicolas Micoud 58027792d8
IDEMPIERE-5342 : Ability to hide the title of the chart when displaye… (#1392)
* IDEMPIERE-5342 : Ability to hide the title of the chart when displayed on Home page
2022-07-21 20:09:11 +08:00
Carlos Ruiz b0e7389f0a
IDEMPIERE-1963 Implement Generate Shipments (manual) as Info Window / Oracle fix (#1404) 2022-07-20 20:10:53 +02:00
Carlos Ruiz 96e0870efd
IDEMPIERE-1963 Implement Generate Shipments (manual) as Info Window / fixes (#1403) 2022-07-20 14:48:50 +02:00
Peter Takács c001169a5f
Idempiere-1963 - Implement Generate Shipments (manual) as Info Window (#1394)
* IDEMPIERE-1963 - Implement Generate Shipments (manual) as Info Window

* IDEMPIERE-1963 - reverting changes commited by mistake

* IDEMPIERE-1963 - Implement Generate Shipments (manual) as Info Window

* IDEMPIERE-1963 - patches for fixes and deprecation
2022-07-20 14:47:32 +02:00
Deepak Pansheriya dc67ae816d
IDEMPIERE-5295: Correcting oracle migration script (#1389)
* IDEMPIERE-5295: Correcting oracle migration script

* Update 202206282000_IDEMPIERE-5295.sql

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2022-07-19 14:03:39 +02:00
Carlos Ruiz e4f4999220
IDEMPIERE-5295 Trial Balance Report creates wrong Opening Balance / fix oracle script - caused by mismatch in primary key name IDEMPIERE-5227 (#1387) 2022-07-08 13:48:56 +02:00
Carlos Ruiz 1846439e92 Revert "IDEMPIERE-5302 - Drill Assistant Feature (#1345)"
This reverts commit 809e3ae734.
2022-07-08 13:25:19 +02:00