* 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>
* IDEMPIERE-5354 Manage use case for microsoft OAuth2 preferred_username (FHCA-3757)
* IDEMPIERE-5354 Manage use case for microsoft OAuth2 preferred_username (FHCA-3757)
* 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.
* IDEMPIERE-5393 - Allow rendering status line as widget/gadget in dashboard
* IDEMPIERE-5393 - css class for status line
* IDEMPIERE-5393 - update default theme version
* 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
* IDEMPIERE-5295: Trial Balance Report creates Opening balance per organization and setting opening date day before from date.
* IDEMPIERE-5295: Correction as per Hengsin's code review vomment.
* IDEMPIERE-5295: Opening Balance should be on first day of Period
* IDEMPIERE-5295: Removed unused import
* IDEMPIERE-5295: Fixing report view is not set on default print format
Co-authored-by: hengsin@gmail.com
* IDEMPIERE-5331 Create Production from Order (all Lines)
* Refactoring to remove redundant or unused code and parameters
* Clear the order line reference on production when voiding and reversing
* IDEMPIERE-5057 Implement Deductible and non deductible input tax for purchasing and costing
* IDEMPIERE-5057 Implement Deductible and non deductible input tax for purchasing and costing
* IDEMPIERE-5057 Implement Deductible and non deductible input tax for purchasing and costing
- Fix rounding error
* IDEMPIERE-5088 Implement Bank Transfer as Transactional Document like Payment
* IDEMPIERE-5088 Implement Bank Transfer as Transactional Document like Payment
- default to charge and to bpartner from the corresponding from fields
- add DateAcct, C_ConversionType_ID and IsOverrideCurrencyRate columns
- remove mandatory org linked bp requirement
- rename window to Bank/Cash Transfer and deactivate existing Bank/Cash
Transfer process.
* IDEMPIERE-5088 Change Bank Transfer Process to use (optionally) the new document
Co-authored-by: Carlos Ruiz <carg67@gmail.com>
* IDEMPIERE-5093 Scheduler cron pattern scheduling is always using server time zone
* minor fix for oracle/202203240830_IDEMPIERE-5093.sql
* IDEMPIERE-5093 cheduler cron pattern scheduling is always using server time zone
- add time zone comment for cronpattern field
- use fix format for elapsed time (day'hour:minutes:seconds.millisecond)
- use time zone formatting at server monitor
- include etc/gmt* timezone id. fix handling of invalid user input
- fix wrong editor (date) use for timestamp with time zone field
* IDEMPIERE-5093 cheduler cron pattern scheduling is always using server time zone
- Fix MSchedule.getNextRunMS call.
* IDEMPIERE-5093 Scheduler cron pattern scheduling is always using server time zone
- add T_Timestamp to Test table and window.
- fix date time editor doesn't capture seconds for timestamp with time
zone.
- date time editor: use tenant time zone (if set), fallback to browser
time zone.
- date time editor: fix processing of timestamp with time zone value.
- time zone editor: drop the confusing etc/gmt* entries and support
entry of GMT(+/-)hh:mm custom zone id.
* IDEMPIERE-5093 Scheduler cron pattern scheduling is always using server time zone
Fix NPE
Co-authored-by: Carlos Ruiz <carg67@gmail.com>
* IDEMPIERE-5241 : bugfixes for charts
fix WhereClause, WinHeight, TimeUnit (see details in ticket)
* IDEMPIERE-5214 : Bugfixes for charts - fix TabEditor when no chart is defined on field
* IDEMPIERE-5056 Order and Invoice: Tax lookup interface
* IDEMPIERE-5056 Order and Invoice: Tax lookup interface
- add default value for MSysConfig.getValue call.
* IDEMPIERE-5232 : Chart field at tenant level
* IDEMPIERE-5232 : Chart field at tenant level - Change AccessLevel to System+Client
* IDEMPIERE-5232 : Chart field at tenant level - migration scripts to iD10
* IDEMPIERE-5232 : Chart field at tenant level - DataSource tab must be advanced
* IDEMPIERE-5232 : Chart field at tenant level - fix migration scripts
* IDEMPIERE-5232 : Chart field at tenant level - fix script
* IDEMPIERE-4586 Update translation of Client to Tenant
* Exclude AD_Ref_List.Name from the update as it impacts too many constants generated in X_ classes
* * update the Updated column too so that it is easier to trace back which records have been updated (as suggested by Heng Sin)
* * Update some additional messages that becomes duplicated (as reported by Nicolas)
* * Add updates to AD_Tab.CommitWarning (as reported by Nicolas)
* IDEMPIERE-2081 Class OrderLineCreateProduction and OrderLineCreateShipment exception messages are not translated! #resolve #fixversion 10
* IDEMPIERE-2081 Class OrderLineCreateProduction and OrderLineCreateShipment exception messages are not translated! #resolve #fixversion 10
* IDEMPIERE-2081 Class OrderLineCreateProduction and OrderLineCreateShipment exception messages are not translated! #resolve #fixversion 10
* IDEMPIERE-5218 Improvements for Record Info dialog #resolve #comment Permalink as a button + new button Copy SELECT
* Use navigator.clipboard and PO.get_WhereClause - as suggested by Heng Sin
* IDEMPIERE-5214 : Add AD_Role.IsClientAdministrator
* IDEMPIERE-5214 : Add AD_Role.IsClientAdministrator - move scripts to i9
* IDEMPIERE-5214 : Add AD_Role.IsClientAdministrator - set value for new tenants
Co-Authored-By: Carlos Ruiz <carg67@gmail.com>
* IDEMPIERE-5206 - HTML Report CSS style - add AD_FieldStyle_ID on AD_PrintFormatItem table
* IDEMPIERE-5206 - migration scripts
* IDEMPIERE-5206 - AD_FieldStyle_ID check, styleBuilder check added
* IDEMPIERE-5206 - moved the added code block to the right place
- update Fertilizer and Furniture Org/Warehouse address in Germany and France
- update vendors 'Chemical Product, inc' and 'Wood, Inc’ to address in Germany and France
- new Customer Agri-Tech based in Germany
- new Import purchase price list in EURO
* IDEMPIERE-5202 Implement auto save of current tab
* IDEMPIERE-5202 Implement auto save of current tab
- Fix auto save trigger for every keystore on text field.
* IDEMPIERE-5202 Implement auto save of current tab
- Fix handling of the confirmation dialog for close of tab.
- Focus tweak for child to parent tab navigation.
- Restore focus if user abandon closing of tab.
* IDEMPIERE-5202 Implement auto save of current tab
- Fix infinite error loop when auto save fail with error
* IDEMPIERE-5188 : Reset content of color field
* IDEMPIERE-5188 : Reset content of color field - cleaner way but does not work
* IDEMPIERE-5188 : Reset content of color field - new editor
* IDEMPIERE-5188 : Reset content of color field - open color picker from button and popup menu
* IDEMPIERE-5188 : Reset content of color field - integrate patch from hengsin
Co-Authored-By: hengsin <152246+hengsin@users.noreply.github.com>
* IDEMPIERE-5188 : Reset content of color field - messages/icons
* IDEMPIERE-5188 : Reset content of color field - remove unnecessary changes
* IDEMPIERE-5188 : Reset content of color field - headers
* IDEMPIERE-5188 : Reset content of color field - remove ColorBox.java
* IDEMPIERE-5188 : Reset content of color field - changes suggested by hengsin
Co-authored-by: hengsin <152246+hengsin@users.noreply.github.com>
- Fix missing account combinations and doctype in payment allocations
- Fix Tree Farm Vendor Liabilty posted to different account in euro schema
- Add equivalent Intercompany Journal to euro schema
* IDEMPIERE-3595 Postal in document views is incorrect #resolve
* Fixing oracle script - Lines with length > 2499 - this will cause SP2-0027
Co-authored-by: Carlos Ruiz <carg67@gmail.com>
* IDEMPIERE-5184 Cost Adjustment sets incorrect cost for other schema when currency blank on header
- also add check to unit test
* IDEMPIERE-5184 Cost Adjustment sets incorrect cost for other schema
- add currency id check to minventory before save
* IDEMPIERE-5168 column AD_AuthorizationAccount.AccessToken is short on some case
- Allow reference Text with length 0 to be managed as CLOB/TEXT
- Increase AD_ChangeLog.OldValue/NewValue to 4000 to allow saving more information about changing long texts
- Change AD_AuthorizationAccount.AccessToken to CLOB/TEXT
- Change some important actual columns defined as Text Long, to Text with length 0 (this allows changelog, better 2Pack, encryption)
* Fix problem reported by Hiep Lq with Text/Text Long not shown correctly as encrypted
* IDEMPIERE-1104 : SysConfig for posting using bank statement line date
* IDEMPIERE-1104 : SysConfig for posting using bank statement line date - compare periods using IDs
* @nmicoud IDEMPIERE-1104 : SysConfig for posting using bank statement line date
change method's name and javadoc
* IDEMPIERE-2853: Fixing bug of usage of isSortTab flag on display logic
* Update 202201190848_IDEMPIERE-2853.sql
* Update 202201190848_IDEMPIERE-2853.sql
Co-authored-by: Carlos Ruiz <carg67@gmail.com>
* Add org.compiere.model.MBankStatementLoader.getLastSavedLine() to allow further processing of the saved I_BankStatement record on plugins
* Increase size of columns:
I_BankStatement.EftMemo -> 4000
I_BankStatement.Memo -> 4000
C_BankStatementLine.EftMemo -> 4000
C_BankStatementLine.Memo -> 4000
I_BankStatement.LineDescription -> 1000
C_BankStatementLine.Description -> 1000
I_BankStatement.EftTrxType -> 255
C_BankStatementLine.EftTrxType -> 255
I_BankStatement.EftReference -> 255
C_BankStatementLine.EftReference -> 255
I_BankStatement.ReferenceNo -> 255
C_BankStatementLine.ReferenceNo -> 255
* Add process "Create Payment" on bank statement header to process all lines with pending payments to create
* IDEMPIERE-5152 : Add title on broadcast messages
* Broadcast messages : use all the width of the panel to display the message
* IDEMPIERE-5152 : Add title on broadcast messages
* IDEMPIERE-5152 : Add title on broadcast messages - model class for v9
* IDEMPIERE-5152 : Add title on broadcast messages - improve mobile usage
Co-Authored-By: Carlos Ruiz <carg67@gmail.com>
* Delete pr1130_PR.txt
Co-authored-by: Carlos Ruiz <carg67@gmail.com>
* IDEMPIERE-5126 Virtual column lazy loading
Virtual columns are now loaded only whenever their respective getters are invoked. This functionality works irrespective of the PO constructor used.
Query class now uses lazy loading by default as well.
* IDEMPIERE-5126 Virtual column lazy loading
Have the model generator ignore virtual columns with the @SQL prefix, as
their generated getters would always return null.
* IDEMPIERE-5126 Virtual column lazy loading
Added quoting to virtual column names
* IDEMPIERE-5126 Virtual column lazy loading
Reload virtual columns if the record was reloaded.
* IDEMPIERE-5126 Virtual column lazy loading
Fixed class cast exception in unit test.
* IDEMPIERE-5126 Virtual column lazy loading
Support for loading selected virtual columns along with regular table
columns, skipping lazy loading.
* IDEMPIERE-5126 Virtual column lazy loading
Fine-grained virtual column loading support for Query.
* IDEMPIERE-5126 Virtual column lazy loading
Support for loading selected virtual columns along with regular table
columns, skipping lazy loading.
* IDEMPIERE-5126 Virtual column lazy loading
Improved support for the constructor PO.PO(Properties, int, String,
String...).
* IDEMPIERE-5126 Virtual column lazy loading
Refactoring. Reduced size of messages sent and received from database
engine when lazy loading virtual columns. Other minor changes.
* IDEMPIERE-5126 Virtual column lazy loading
Added testing assertions.
* IDEMPIERE-5126 Virtual column lazy loading
Silenced Eclipse warnings.
* IDEMPIERE-5136 : Set Messages at tenant level
* IDEMPIERE-5136 : Set Messages at tenant level : remove loop of clients to load messages
* IDEMPIERE-5136 : Set Messages at tenant level : fix migration scripts + fix imports
* IDEMPIERE-5136 : Set Messages at tenant level - callout to fill fields
* IDEMPIERE-5136 : Set Messages at tenant level - language field must be mandatory
* IDEMPIERE-5136 : Set Messages at tenant level - callout to fill fields (used at tenant level only)
* IDEMPIERE-5136 : Set Messages at tenant level - add IsActive check + close pstmt
* IDEMPIERE-5136 : Set Messages at tenant level - patch from Carlos
Co-Authored-By: Carlos Ruiz <carg67@gmail.com>
* IDEMPIERE-5136 : Set Messages at tenant level - check for active records on Trl table
Co-authored-by: Carlos Ruiz <carg67@gmail.com>
* IDEMPIERE-5109 Release 9 Horizon
- Fill UUID in missing AD_TreeNodeMM_UU
* - IDEMPIERE-1052 - set as Search for High Volume tables
* - Fix supported versions in SECURITY.md
* - Script to set the Version number
* - Set credits and image
* - script to clean trailing space from elements
* - Set entity type EXT for Web Service tables
* - IDEMPIERE-4214 Javadoc: correct warnings on newest java version
* - Improvements to model generator classes
* - Model classes
* - Folders script maintenance new version
* IDEMPIERE-4262 on some condition, record insert by direct sql missing UUID
Solve AD_Element_Trl, AD_Process_Para_Trl, AD_PrintForm
* Add AcctSchemaDefaultCopy *_Acct tables, M_Product_PO, Fact_Reconciliation
* IDEMPIERE-4882: Supproting warehouse To on inventory Move to filter locator
* IDEMPIERE-4882 On Inventory Move, Adding Warehouse and Warehouse To field on header / peer review
Co-authored-by: dpansheriya <deepakpansheriya@gmail.com>
* IDEMPIERE-4262 on some condition, record insert by direct sql missing UUID / fix role access uuids
* more on AD_Document_Action_Access
* Improve performance for trl recreate or insert - using update instead of record by record
* - add AD_PInstance_Log.AD_PInstance_Log_UU
* IDEMPIERE-5109 Release 9 Horizon / add year 2022 in GardenWorld - fixes broken unit test InvoiceCustomerTest.testOpenAmt
* Revert file committed by mistake
* Change 188 reftables to use the ID for display - this displays the reference based on the identifiers of the table, making it consistent with Search/Table without reference
* Use the MSysConfig.IDENTIFIER_SEPARATOR for the cases where reference is displaying value and another column
* IDEMPIERE-5052 Date Min/Max Validation wrong with 5 digit years
* IDEMPIERE-5052 Date Min/Max Validation wrong with 5 digit years / enable for Cost+Price and String
* IDEMPIERE-4858 : Helper process "Make Table a Document" - fixes for translation tables
see details in tickets
* IDEMPIERE-4858 : Helper process "Make Table a Document" - add TableIndex records
* IDEMPIERE-4858 : Helper process "Make Table a Document" - AD_Message / tick IsTranslated on main table
Co-Authored-By: Carlos Ruiz <carg67@gmail.com>
* Delete pr990_PR.txt
commited by error
Co-authored-by: Carlos Ruiz <carg67@gmail.com>
* IDEMPIERE-4900 SQL statement added as an option to define WF Next Node Condition
Base on pull request 813 (Anton Mostovenko) and patch from
IDEMPIERE-1832 (Deepak Pansheriya)
* IDEMPIERE-4900 SQL statement added as an option to define WF Next Node Condition
Incorporate patch from carlos
* IDEMPIERE-4900 SQL statement added as an option to define WF Next Node Condition
Incorporate patch from Carlos