Commit Graph

3664 Commits

Author SHA1 Message Date
hengsin 6302f6f5fd IDEMPIERE-6029 Extract @SQL= and @SQLFIND= to constant (#2230) 2024-03-04 21:17:30 +01:00
hengsin 7224009efc IDEMPIERE-6032 MPInstanceLog ResultSet constructor not getting all value from result set (#2233) 2024-03-04 21:17:30 +01:00
hengsin c2111b9ccd IDEMPIERE-6036 Serial number control has potential to generate duplicate serial number under heavy load (#2236) 2024-03-04 21:17:30 +01:00
hengsin 9eb83bfe31 IDEMPIERE-6034 MTaxCategory.getDefaultTax unnecessary create new MTax instance (#2234) 2024-03-04 21:17:30 +01:00
hengsin 91d757cf81 IDEMPIERE-6030 Potential infinite loop in MLocation.equals (Object) method (#2231) 2024-03-04 21:17:30 +01:00
hengsin 284b6f97f6 IDEMPIERE-6031 Redundant code in MSetup.createClient method (#2232) 2024-03-04 21:17:30 +01:00
hengsin 61e3e48c9a IDEMPIERE-6035 Use saveCrossTenantSafe instead of PO.setCrossTenantSafe (#2235) 2024-03-04 21:17:03 +01:00
hieplq 815e363882 IDEMPIERE-6016:test case to simulate transaction timeouts and ensure no open connections remain afterwards (#2219)
* IDEMPIERE-6016:allow transaction monitor's scan timeout to a short duration

* IDEMPIERE-6016:test case to simulate transaction timeouts and ensure no open connections remain afterwards

* IDEMPIERE-6016:trx timeout make leak connection by call Connection.about but not call Connection.close(Hengsin review)

replace abort with rollback
use shorter duration for timeout test 2
add Isolatead and same thread execution class annotation

* IDEMPIERE-6016:trx timeout make leak connection by call Connection.about but not call Connection.close(Hengsin review)

---------

Co-authored-by: hengsin <hengsin@gmail.com>
2024-03-04 21:13:19 +01:00
hieplq b9fbd91571 IDEMPIERE-6016:trx timeout make leak connection by call Connection.about but not call Connection.close (#2210) 2024-03-04 21:13:19 +01:00
Carlos Ruiz 087b936e2b IDEMPIERE-3117 Wrong period validation on Bank Statement (#2225)
* IDEMPIERE-3117 Wrong period validation on Bank Statement - change statementDate to dateAcct on testPeriod

* - peer review

---------

Co-authored-by: zuhriutama <zuhriutama@gmail.com>
2024-02-06 10:11:10 +01:00
Peter Takács e5eebba4a6 IDEMPIERE-5992 - Move the getIdentifier methods from WRecordEditor to MLookup class (#2183)
* IDEMPIERE-5992 - Move the getIdentifier methods from WRecordEditor to MLookup class

* IDEMPIERE-5992 - refactor logic

* IDEMPIERE-5992 - replace keyColumn parameter with useUUIDKey
2024-02-06 10:11:10 +01:00
Carlos Ruiz 8422123487 IDEMPIERE-6017 Fix NPE in MoveClient when a column does not exist (#2218) 2024-02-06 10:11:10 +01:00
Carlos Ruiz 22e22fa976 IDEMPIERE-6017 Move/Copy Client failing when there are Record_ID references for AD_ClientInfo or AD_OrgInfo (#2214)
- improve discovery of key column
- improve avoiding block when the target column is bigger and can hold the source column
2024-02-06 10:11:10 +01:00
Carlos Ruiz 1ec37be854 IDEMPIERE-6015 Allow usage of _ID or _UU columns in print format item scripts (#2208) 2024-02-06 10:11:10 +01:00
Carlos Ruiz 2b785e3900 IDEMPIERE-5567 Insert Log not being created - fix wrong parenthesis (#2212) 2024-02-06 10:11:10 +01:00
Carlos Ruiz b5efecc282 IDEMPIERE-5567 Trl Export for table TestUU_Trl (#2207)
- fix throwing TestUU_Trl org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying <= integer Hint: No operator matches the given name and argument types. You might need to add explicit type casts. Position: 268
- change the process to explicitly break when a DB exception happens
2024-02-06 10:11:10 +01:00
Carlos Ruiz fceb0614a5 IDEMPIERE-5996 Record Access is not being updated when a new record is added (#2194)
* IDEMPIERE-5996 Record Access is not being updated when a new record is added

* - correct CacheMgt.getElementCount

* - revert correction of CacheMgt.getElementCount

* - reset changes on MRole

* - implemnt suggestion from Heng Sin about validation of cache size

* - simpler approach, make the default role a cache instead of context

* - remove unnecessary code

* - implement suggestion from Heng Sin - keep instance of validation

* - revert changes on MRole to try a different approach

* - Implement approach suggested by Heng Sin - reset default role when is not in cache
2024-01-23 15:43:48 +01:00
Carlos Ruiz e33cadc2f9 IDEMPIERE-6002 Recent Items not working when UUID field is inactive (#2198)
* IDEMPIERE-6002 Recent Items not working when UUID field is inactive

* - add missing fields in core windows:
Product > BOM
Product > Components
Remuneration > Remuneration
Remuneration > Position Remuneration
Remuneration > Employee Remuneration
Revenue Recognition > Revenue Recognition
Revenue Recognition > Service
Revenue Recognition > Revenue Recognition Plan
Revenue Recognition > Revenue Recognition Run
Validation Rules > Used in Column (Lookup)

* - sync postgresql and oracle scripts
2024-01-23 15:43:48 +01:00
Carlos Ruiz bf89e009ab IDEMPIERE-6000 Reset AD_SysConfig cache automatically when configured (#2196)
* IDEMPIERE-6000 Reset AD_SysConfig cache automatically when configured

* - better comment
2024-01-23 15:43:48 +01:00
luzpaz a87de727af IDEMPIERE-5838 Fix various typos (#2188)
* Fix various typos
Fixes user-facing and non-user-facing typos. Found via `codespell -q 3 -S "*.map,./migration,./migration-historic"`
* Added requested revisions
* Added requested revision
* Added requested revisions
2024-01-23 15:43:48 +01:00
Carlos Ruiz 17b012c376 IDEMPIERE-5567 - Parallel unit tests fail frequently with deadlock (#2190)
* IDEMPIERE-5567 - Parallel unit tests fail frequently with deadlock

when executing unit tests in parallel, MTestUUTest fails frequently with error detected deadlock
this can be caused by testReadingUpdatingTestUU trying to update translations and at the same time
the testDeletingTestUU is deleting the same record and deleting the same translations

* - implement suggestion from Heng Sin

* - remove unnecessary code
2024-01-23 15:43:48 +01:00
Carlos Ruiz c9235a02b4 IDEMPIERE-5994 Connection leak when using DB.prepareStatement(badSql, null) (#2184)
* IDEMPIERE-5994 Connection leak when using DB.prepareStatement(badSql, null)

* - implement approach suggested by Heng Sin
2024-01-23 15:43:48 +01:00
Carlos Ruiz 0b5c7e2256 IDEMPIERE-5989 Attachments are not accessible after upgrade from Idempiere 10 to Idempiere 11 (#2185)
* IDEMPIERE-5989 Attachments are not accessible after upgrade from Idempiere 10 to Idempiere 11

IDEMPIERE-5567
Fix issue when the window doesn't have the UUID field

* - change for a more robust method (similar approach to other points)
2024-01-23 15:43:48 +01:00
Diego Ruiz 735a735fbb IDEMPIERE-5996 - Added the functionality of resetting cache after cre… (#2186)
* IDEMPIERE-5996 - Added the functionality of resetting cache after creating a record access restriction

* Update MRecordAccess.java

---------

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2024-01-23 15:43:48 +01:00
hengsin b912996243 IDEMPIERE-5838 Base: Improve readability of code (#2179)
* IDEMPIERE-5838 Base: Improve readability of code

* IDEMPIERE-5838 Base: Improve readability of code
2024-01-23 15:43:47 +01:00
Carlos Ruiz 578e942f20 Revert "IDEMPIERE-4877 - Fix Footer is overlay on content (#2053)"
This reverts commit b8f1d6d2fb.
2024-01-23 15:33:22 +01:00
Carlos Ruiz da16af2a46 IDEMPIERE-5981 Misleading error when completing an auto-produce shipment (#2177)
* IDEMPIERE-5981 Misleading error when completing an auto-produce shipment

* - more robust fix
2024-01-23 15:33:22 +01:00
Carlos Ruiz bd18f2bd5d IDEMPIERE-5402 Replace Jfree Chart with Billboard (#2165)
* IDEMPIERE-5402 Replace Jfree Chart with Billboard

- Add client SysConfig definition

* - add deprecation warnings for deprecated keys
2024-01-06 12:06:44 +01:00
Deepak Pansheriya f39dfd1dc3 IDEMPIERE-5602: removing priceEntered and added LineNetAmt on Expense report line. (#2138)
Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2024-01-06 12:06:44 +01:00
hengsin 6f110b2d2f IDEMPIERE-5963 Implement Sub-Partitioning and Detach Partition (#2150)
* IDEMPIERE-5963 Implement Sub-Partitioning and Detach Partition
Implement sub-partitioning for PostgreSQL
Implement sub-partitioning for Oracle
Implement detach/re-attach
2024-01-06 12:06:44 +01:00
Carlos Ruiz 18146a57a6 IDEMPIERE-5567 Fix NPE when AD_RecentItem.Record_UU is null (#2172)
- this can happen for example when a recent item record doesn't have or doesn't manage UUID
2023-12-30 20:13:21 +01:00
Carlos Ruiz b0fb3c2b44 IDEMPIERE-5567 fix PO.get_Translation for Zero ID tables (#2170) 2023-12-30 12:43:37 +01:00
Carlos Ruiz b813807712 IDEMPIERE-5970 Reference field must be filled in Report Customization for multiple fields (#2166)
IDEMPIERE-5271
2023-12-29 16:52:20 +01:00
Carlos Ruiz 2fad0afc73 IDEMPIERE-5354 - Correct name of SysConfig keys (max 50 chars) (#2164)
- rename SysConfig
OAUTH2_USE_ID_TOKEN_PREFERRED_USERNAME_ON_MICROSOFT_PROVIDER
to
OAUTH2_USE_ID_TOKEN_PREF_USERNAME_ON_MS_PROVIDER
2023-12-29 16:52:20 +01:00
Carlos Ruiz 7ad6cfc68d IDEMPIERE-4214 Javadoc: correct warnings on newest java version (#2168) 2023-12-29 16:52:20 +01:00
Carlos Ruiz 756c62bb17 IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) (#2162)
- fix for import/export of TestUU_Trl
- fix for server stuck in loop when recent item doesn't have Record_UU
06:16:19.829===========> UiEngineImpl.handleError:  [131]
java.lang.IllegalArgumentException: Invalid null or blank UU - Must pass valid UU
        at org.compiere.model.PO.loadByUU(PO.java:1486)
        at org.compiere.model.MTable.getPOByUU(MTable.java:684)
        at org.compiere.model.MRecentItem.getLabel(MRecentItem.java:360)
        at org.adempiere.webui.dashboard.DPRecentItems.refresh(DPRecentItems.java:275)
        at org.adempiere.webui.dashboard.DPRecentItems.updateUI(DPRecentItems.java:333)
2023-12-27 13:59:41 +01:00
Carlos Ruiz 48a3e73798
IDEMPIERE-5967 Release 11 Synergy (#2155)
* IDEMPIERE-5967 Release 11 Synergy

* - Script to set version

* - generate model
2023-12-22 15:33:57 +01:00
Carlos Ruiz 4f52a4efcf
IDEMPIERE-5849 MRole.getDefault make phantom role on cache (#2149)
- Make SysConfigurable to return System role for backward compatibility
2023-12-21 14:26:20 +01:00
Carlos Ruiz 03ceb5f88f
IDEMPIERE-5965 Translation Import crashed with a wrong XML (#2152) 2023-12-21 20:39:20 +08:00
hengsin 7878721bf3
IDEMPIERE-5943 Implement table partitioning support (#2145)
* IDEMPIERE-5943 Implement table partitioning support

Co-authored-by: etantg <etan@trekglobal.com>
2023-12-20 14:10:04 +08:00
Alan Lescano 7aa48d1856
IDEMPIERE-5958: Jasper Report: ResourceBundle should use element's PrintName instead of Name (#2148) 2023-12-19 10:11:15 +08:00
Carlos Ruiz 062741070d
IDEMPIERE-5932 Update English top-level menu names and window names to better support new user adoption (#2133)
* IDEMPIERE-5932 Update English top-level menu names and window names to better support new user adoption

* - fix minor typo

* - implement suggestions from Heng Sin
- fix favourites showing the name as tooltip instead of the description

---------

Co-authored-by: Chuck Boecking <chuck@chuboe.com>
2023-12-14 16:26:11 +08:00
Carlos Ruiz ffdde952fb
IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) - Fixes #TestDay2023 (#2134)
- CleanOrphanCascade is failing when there are orphan change log records for M_InOutLineMA or other non-ID tables
- MoveClient is failing when there are AD_PInstance orphan records (because of the recently added AD_Table_ID reference)
2023-12-12 15:39:19 +08:00
Carlos Ruiz 8dfb29c91d
IDEMPIERE-5076 Move/Copy client doesn't work in oracle (#2135) 2023-12-12 15:38:13 +08:00
Carlos Ruiz 620a528a98
IDEMPIERE-5955 Financial Report using jasper is throwing exception about closed connection (#2137) 2023-12-12 15:31:58 +08:00
hengsin 7329975eec
IDEMPIERE-5838 Base: Improve readability of code (#2129)
* IDEMPIERE-5838 Base: Improve readability of code

* IDEMPIERE-5838 Base: Improve readability of code
2023-12-08 13:02:49 +01:00
Vitor Villa 342a243c1a
IDEMPIERE-5944 - Default value of Yes/No columns (#2121)
* IDEMPIERE-5944 - Default value of Yes/No columns
2023-12-07 20:40:28 +08:00
Carlos Ruiz d6121597b0
IDEMPIERE-5782 Generated Shipments/MR and Invoices with Invalid SalesRep (#2127)
* IDEMPIERE-5782 Generated Shipments/MR and Invoices with Invalid Sales Rep

- Fix same issue with RMA

* - add the callout validations also on beforeSave
2023-12-05 22:01:12 +08:00
Carlos Ruiz 1749154acb
IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) (#2125)
* IDEMPIERE-5567 Support of UUID as Key (FHCA-4195)

- Fix PO.get_Translation failing for UUID tables

* - fix verification of zero ID
2023-12-04 10:34:59 +08:00
Elaine Tan cacb456c2e
IDEMPIERE-5936 Slow performance creating MR/Invoice Lines using CREATE LINES FROM.. in process M_InOut/C_Invoice_CreateFromProcess (#2123)
* IDEMPIERE-5936 Slow performance creating MR/Invoice Lines using CREATE LINES FROM.. in process M_InOut/C_Invoice_CreateFromProcess

* IDEMPIERE-5936 Slow performance creating MR/Invoice Lines using CREATE LINES FROM.. in process M_InOut/C_Invoice_CreateFromProcess
2023-11-30 11:22:35 +08:00