Commit Graph

254 Commits

Author SHA1 Message Date
Carlos Ruiz 449c124fe1
IDEMPIERE-5567 Support of UUID for Search (UU) data type (FHCA-4195) (#1787)
* IDEMPIERE-5567 Support of UUID for Search (UU) data type (FHCA-4195) - fix broken unit tests

* - Fix problem with unit test:
MTestTest.testReadingUpdatingTest:65 expected: <Test setting description> but was: <Test setting descriptionMTestEventDelegate>
2023-04-19 09:07:32 +08:00
Carlos Ruiz c80d53674a
IDEMPIERE-5567 Support of UUID as Key - Generate Model Classes (FHCA-4195) (#1772)
* IDEMPIERE-5567 Support of UUID as Key (FHCA-4195)

New generated model classes with new UUID constructor

* - In order to use UUID constructor M classes must implement the constructor too
- Adding the constructor on MTest and adding a JUnit test to test/show how it works

* - Remove warning caused by changes on this ticket

* - Add UUID constructor to factories

* - Set new UUID constructor in mapped/annotated test classes
- Preparation for the new UUID constructor

* - Add UUID constructor to core model classes
- WARNING: MPaymentBatch(Properties, String, String) already existed with Name as parameter, it was changed to UUID
2023-04-12 11:02:33 +08:00
Carlos Ruiz 2e9b1222d3
IDEMPIERE-5560 Fix broken unit tests (#1770) 2023-04-06 16:04:45 +08:00
Carlos Ruiz a967069164
IDEMPIERE-5567 Support of UUID as Foreign Key (FHCA-4195) (#1741)
* IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) - Foreign Keys

* - Table Direct working as read-only and link column

* - Fixes for Table with Reference

* - Add UUID FK management to Migrate ID process
- Add MColumn.beforeSave validation to force UUID columns to end with _UU
- Add table TestUUDet with two foreign keys pointing to TestUU (TableDir and Search)
- Add detail tab to Test UU Based Table window
- Add a new test window named Test UU Detail
- Generate model classes for the new test table
- Add test case for the detail test table
- Add MTable.isIDKeyTable method
- Add UU foreign key cross tenant validation to PO.validForeignKeys

* - Added a Chosen Multiple Selection Table with foreign UU for testing
- Changed reference in dictionary logic and sql to reflect new data types
- Disable SearchUU temporarily (will be worked in next step)
- Add validation to avoid encrypting UUID columns
- Avoid warning when searching for getPO method on UUID based tables
- Make Zoom Across button work with UUID foreign keys
- Enable zoom and zoom to detail for UUID foreign keys
- Enable Find Advanced on detail foreign UUID keys

* - Fix javadoc
- Quote properly UUID
- Validate null on return

* - Fix zoom logic - tested zooming to tab in first second and third level
2023-04-05 10:26:27 +08:00
hengsin ee1b6828f4
IDEMPIERE-5560 Cannot save more than one order line when an _ID field is not displayed (#1764) 2023-04-01 16:11:35 +02:00
Carlos Ruiz 09df36a78f
IDEMPIERE-5528 IDEMPIERE-5560 Cannot save more than one order line when an _ID field is not displayed (#1763) 2023-04-01 11:18:09 +08:00
Carlos Ruiz 51ceaacb43
IDEMPIERE-5567 Support of UUID as Key (FHCA-4195) (#1727)
* IDEMPIERE-5567 Support of UUID as Key (FHCA-4195)

* - Implement changes to support Model classes with UUID constructor

* - fix issue with tables with single parent key - like AD_Ref_Table

* - Create test table and JUnit test

* - fixes from Heng Sin

* - Improve performance on new methods in MTable
- Minor refinements in ModelClassGenerator
- Regenerate Test X classes
- Change Create Window from Table to receive the parent link as parameter (because tables can have now no keys at all)

* - Implement suggestions from Heng Sin

* - _UU column as primary key constraint for UUID based tables

---------

Co-authored-by: hengsin <hengsin@gmail.com>
2023-03-21 21:30:45 +08:00
hengsin efcd7352f2
IDEMPIERE-5632 Add unit test for regular expression match for contains (#1738) 2023-03-17 11:36:27 +01:00
hengsin 859dd1a723
IDEMPIERE-5600 Add Core.getDefaultAnnotationBasedEventManager() API (#1698)
* IDEMPIERE-5600 Add Core.getDefaultAnnotationBasedEventManager() API

* IDEMPIERE-5600 Add Core.getDefaultAnnotationBasedEventManager() API

- minor refinement
2023-03-06 20:40:48 +01:00
hengsin 6a5d45cba7
IDEMPIERE-5542 [DisplayType] - Cache issue (#1687) 2023-03-06 18:33:57 +01:00
hengsin 6a66903ec6
IDEMPIERE-5586 Implement ID independent migration script (#1685)
* IDEMPIERE-5586 Implement ID independent migration script

* IDEMPIERE-5586 Implement ID independent migration script

- add Oracle script (99% converted by ChatGPT from PostgreSQL :)).

* IDEMPIERE-5586 Implement ID independent migration script

- handle official id value for foreign key reference .
- add back centralized id support.

* IDEMPIERE-5586 Implement ID independent migration script

- minor refactoring
- add support for AD_Table_ID+Record_ID usage

* IDEMPIERE-5586 Implement ID independent migration script

- add support for Delete
- add unit test

* IDEMPIERE-5586 Implement ID independent migration script

- add insert_accounting and insert_tree support.

* IDEMPIERE-5586 Implement ID independent migration script

- add ADSortTab support.

* IDEMPIERE-5586 Implement ID independent migration script

- move migration script from iD11 to iD10.
2023-03-02 18:24:41 +01:00
matheus-marcelinux 9f71eeadbc
IDEMPIERE-5458 - Timezone defined by Organization (#1568)
* # IDEMPIERE-5458 - Timezone defined by Organization

* # IDEMPIERE-5468 - improved unit test

* # IDEMPIERE-5458 - removing user/password from scriptg

* IDEMPIERE-5458 - fix migration script

* IDEMPIERE-5458 - adding field in org info tab
2023-02-01 11:43:06 +08:00
Carlos Ruiz dd7b63aa0d
IDEMPIERE-5523 Release 10 Peace (#1624)
- move master to release-11 development build
2022-12-24 00:20:49 +01:00
hengsin 06b02889f8
IDEMPIERE-5503 Product Costs > Cost Movement > Field AMOUNT has incon… (#1598)
* IDEMPIERE-5503 Product Costs > Cost Movement > Field AMOUNT has inconsistent +/- signs

* IDEMPIERE-5503 Product Costs > Cost Movement > Field AMOUNT has inconsistent +/- signs

- refinement and added unit tests

* IDEMPIERE-5503 Product Costs > Cost Movement > Field AMOUNT has inconsistent +/- signs

- add unit test for lot level costing

* IDEMPIERE-5503 Product Costs > Cost Movement > Field AMOUNT has inconsistent +/- signs

- fix unit test error.

* IDEMPIERE-5503 Product Costs > Cost Movement > Field AMOUNT has inconsistent +/- signs

- add unit test for cost adjustment

* IDEMPIERE-5503 Product Costs > Cost Movement > Field AMOUNT has inconsistent +/- signs

- add unit test for physical inventory

* IDEMPIERE-5503 Product Costs > Cost Movement > Field AMOUNT has inconsistent +/- signs

- add unit test for PO landed cost
2022-12-20 14:29:07 +01:00
hengsin 8cf16e9fbd
IDEMPIERE-5506 Oralce: PaymentFormTest hangs due to DB dead lock (#1595) 2022-12-05 15:21:25 +01:00
Carlos Ruiz 2e0317e54c
IDEMPIERE-5484 Import GL Journal fails with SQL error because of NVL (#1573) 2022-11-23 16:22:52 +08:00
Carlos Ruiz 4d9bc5340c
IDEMPIERE-5474 Fixed Assets don't allow depreciation on 18 months (#1562) 2022-11-16 15:47:36 +08:00
hengsin 05bf9d6add
IDEMPIERE-5473 Refactoring of WArchive and MArchive (#1555) 2022-11-15 14:51:11 +01:00
hengsin da587235c7
IDEMPIERE-5476 Refactoring of WRequest and MRequest (#1560) 2022-11-14 22:02:14 +01:00
hengsin d50a44c744
IDEMPIERE-5469 Refactoring of TimeUtil (#1549)
* IDEMPIERE-5469 Refactoring of TimeUtil
* IDEMPIERE-5469 Refactoring of TimeUtil
- Merge patch from Carlos
2022-11-10 14:36:53 +01:00
hengsin 5b5a957d87
IDEMPIERE-5471 Refactoring of Payment Selection and Payment Print/Exp… (#1554)
* IDEMPIERE-5471 Refactoring of Payment Selection and Payment Print/Export form

* IDEMPIERE-5471 Refactoring of Payment Selection and Payment Print/Export form

- merge patch from Carlos
2022-11-08 17:15:25 +01:00
hengsin d76c6257fa
IDEMPIERE-5057 Implement Deductible and non deductible input tax for … (#1542)
* IDEMPIERE-5057 Implement Deductible and non deductible input tax for purchasing and costing

- Fix error when user change invoice/order line to use parent tax

* IDEMPIERE-5057 Implement Deductible and non deductible input tax for purchasing and costing

- Miss MRMATax in previous commit.

* IDEMPIERE-5057 Implement Deductible and non deductible input tax for purchasing and costing

- Fixed order/invoice tax lines not created after save
2022-11-01 14:48:17 +01:00
hengsin f9b070bcaf
IDEMPIERE-5459 Refactoring of Payment Form (#1541) 2022-10-31 18:39:55 +01:00
Fr Jeremy Krieg 84dc2b3f31
IDEMPIERE-5433 Better invoice consolidation rules (#1504)
With acknowledgements to Carlos Ruiz for writing the
test case.
2022-10-28 11:36:19 +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
hengsin be4a00cb0a
IDEMPIERE-5439 Add unit test for Fact Reconciliation form (#1520)
- Fixed intermittent unit test error
2022-10-08 11:50:48 +08:00
hengsin c62af68e09
IDEMPIERE-5402 Replace Jfree Chart with Billboard (#1518)
Update parallel unit test launch configuration
2022-10-07 14:08:48 +08:00
hengsin 13d26966b6
IDEMPIERE-5440 Add unit test for Matching form (#1510) 2022-09-30 12:25:20 +02:00
hengsin a6a80b7a8c
IDEMPIERE-5439 Add unit test for Fact Reconciliation form (#1508)
* IDEMPIERE-5439 Add unit test for Fact Reconciliation form

* Update WFactReconcile.java

* Update FactReconcile.java

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2022-09-30 12:17:22 +02:00
hengsin 536eda3546
IDEMPIERE-5427 Upgrade to Tycho 2.7.5 (#1493)
- restore .classpath to remove Tycho Configurator m2e connector
dependency
2022-09-21 14:21:27 +02:00
hengsin 92cdb06129
IDEMPIERE-5402 Replace Jfree Chart with Billboard (#1463)
- replace jfreechart with https://github.com/naver/billboard.js
2022-09-07 00:36:43 +02:00
hengsin 360861e300
IDEMPIERE-5392 Maven Build: add flag to skip auto clean (#1447)
* IDEMPIERE-5392 Maven Build: add flag to skip auto clean

* IDEMPIERE-5392 Maven Build: add flag to skip auto clean

- Add -DmaterializeProduct flag. Use -DmaterializeProduct=none to turn
off part of org.idempiere.p2 build.
- Add parallel execution setting for test.

* IDEMPIERE-5392 Maven Build: add flag to skip auto clean

- handle potential multi threaded conflict on context property
2022-08-22 17:09:33 +02:00
hengsin ce22d1cc51
IDEMPIERE-5391 Unit Test: Fix support for parallel execution of test (#1446) 2022-08-17 18:34:51 +02:00
hengsin bb8e1a45d4
IDEMPIERE-5387 Unit Test: always include process info summary as document workflow assertion failure message (#1443) 2022-08-15 12:28:01 +02:00
hengsin 5f8e7be3c5
IDEMPIERE-5367 Logic expression IN doesn't works with quoted text (#1423)
* IDEMPIERE-5367 Logic expression IN doesn't works with quoted text

* IDEMPIERE-5367 Logic expression IN doesn't works with quoted text

- Fixed equal not working for quoted text with comma (e.g 'A,R,S')
2022-08-05 13:21:50 +02:00
hengsin 1fcbd5ea07
IDEMPIERE-5358 Refactor CreateFrom (#1413)
* IDEMPIERE-5358 Refactor CreateFrom

* IDEMPIERE-5358 Refactor CreateFrom

- Fix java doc

* IDEMPIERE-5358 Refactor CreateFrom

- Fix SQL error for Oracle (SELECT without FROM only works for
PostgreSQL).

* IDEMPIERE-5358 Refactor CreateFrom

- revert change of protected method name.
2022-08-04 12:42:53 +02:00
Elaine Tan 27c5d0fa53
IDEMPIERE-5339 GL AP/AR and RLL/RLG facts posted on wrong side in allocation reversal document using Payment Reverse-Accrual (#1420)
* IDEMPIERE-5339 GL AP/AR and RLL/RLG facts posted on wrong side in allocation reversal document using Payment Reverse-Accrual
2022-08-04 16:52:41 +08:00
hengsin 58813e8e83
IDEMPIERE-5359 Unit test not working with Oracle (#1419)
* IDEMPIERE-5359 Unit test not working with Oracle

- Fix local trx not rollback for SQLException
- Add test for getSQLValueObjectsEx and getSQLArrayObjectsEx
2022-08-04 16:21:29 +08: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
hengsin da245c061c
IDEMPIERE-1963 Implement Generate Shipments (manual) as Info Window (#1410)
- add unit test for Vendor RMA
2022-07-25 16:20:52 +08:00
hengsin a9068d6a15
IDEMPIERE-5327 Refactoring and clean up of BOM Drop form (#1395)
- Fix unit test
2022-07-14 19:32:55 +08:00
hengsin b0021954e6
IDEMPIERE-5337 Refactoring of Generate Charge from Account form (#1384) 2022-07-07 15:41:05 +02:00
hengsin d4801e3cb2
IDEMPIERE-5327 Refactoring and clean up of BOM Drop form (#1381)
* IDEMPIERE-5327 Refactoring and clean up of BOM Drop form

* IDEMPIERE-5327 Refactoring and clean up of BOM Drop form

- Fix scrolling of center content.

* IDEMPIERE-5327 Refactoring and clean up of BOM Drop form

- add Feature group support
2022-07-07 15:12:36 +02:00
hengsin 278fde8f72
IDEMPIERE-5332 Refactoring of Archive Viewer (#1376)
* IDEMPIERE-5332 Refactoring of Archive Viewer

* IDEMPIERE-5332 Refactoring of Archive Viewer

- remove join to AD_Process_Access
2022-06-30 19:28:19 +08:00
hengsin 006d47ce6a
IDEMPIERE-5320 Refactor unit test to use share constant for dictionary IDs (#1369) 2022-06-22 14:51:42 +02:00
hengsin c53fb6430e
IDEMPIERE-5316 Refactoring of Payment Allocation Form (#1364) 2022-06-14 14:20:06 +02:00
hengsin 4e1515f52a
IDEMPIERE-5301 2022-05 Platform Update (#1347)
* IDEMPIERE-5301 2022-05 Platform Update
2022-06-01 13:57:17 +08:00
hengsin f5a0a0a2f6
IDEMPIERE-5093 Scheduler cron pattern scheduling is always using server time zone (#1348)
- Fix unit test.
- Fix server monitor error out if AD_ClientInfo.TimeZone has invalid
value.
2022-05-28 10:54:16 +02:00
hengsin 6ba272a732
IDEMPIERE-5014 Improve efficiency of Query for large result sets - using Stream (#1334)
- remove iterable() and restore the POIterator base iterate()
implementation.
2022-05-18 16:20:10 +02:00
hengsin a41aeb2205
IDEMPIERE-5057 Implement Deductible and non deductible input tax for purchasing and costing (#1277)
* 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
2022-05-12 11:12:05 +02:00
hengsin 9e43a36862
IDEMPIERE-5260 Enhance Discount Schema for Fixed Pricing (#1313)
* IDEMPIERE-5260 Enhance Discount Schema for Fixed Pricing

* IDEMPIERE-5260 Enhance Discount Schema for Fixed Pricing

- Fix unit test error.
2022-05-11 18:39:58 +02:00
Carlos Ruiz b6191ecee3
IDEMPIERE-5063 Improve Unit Tests (#1315)
* IDEMPIERE-5063 Improve Unit Tests

- revert -> Close DB connections after each unit test class
- implement a different approach to close the transactions on tearDown even when not active

* Remove Adempiere.stop as suggested by Heng Sin
2022-05-06 17:56:10 +08:00
hengsin d2e52bbb86
IDEMPIERE-5262 Implement readonly protection for DB.getSQLValueEx call (#1287)
* IDEMPIERE-5262 Implement readonly protection for DB.getSQLValueEx call

* IDEMPIERE-5262 Implement readonly protection for DB.getSQLValueEx call
2022-05-06 11:14:11 +02:00
hengsin a8958bf29d
IDEMPIERE-5261 Workflow EMail notification enhancement (#1299)
* IDEMPIERE-5261 Workflow EMail notification enhancement

* Update 202204190945_IDEMPIERE-5261.sql

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2022-05-05 18:51:11 +02:00
Fr Jeremy Krieg 10db6177d0
IDEMPIERE-5014 Add stream interface to Query (#1298) 2022-04-29 10:27:26 +08:00
hengsin 321a65bd66
IDEMPIERE-5093 Scheduler cron pattern scheduling is always using server time zone (#1300)
Fix unit test failure
2022-04-23 11:50:56 +02:00
hengsin 13b37c4acc
IDEMPIERE-5093 Scheduler cron pattern scheduling is always using serv… (#1270)
* 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>
2022-04-22 21:28:51 +02:00
hengsin 3090f2384b
IDEMPIERE-5056 Order and Invoice: Tax lookup interface (#1253)
* IDEMPIERE-5056 Order and Invoice: Tax lookup interface

* IDEMPIERE-5056 Order and Invoice: Tax lookup interface

- add default value for MSysConfig.getValue call.
2022-03-23 15:00:08 +01:00
hengsin d4532196a2
IDEMPIERE-5083 add FREIGHTCOSTRULE_CustomerAccount (#1261) 2022-03-22 19:27:04 +01:00
hengsin 0f0ee411eb
IDEMPIERE-5089 Add MSysConfig.ALLOW_REVERSAL_OF_RECONCILED_PAYMENT (#1254) 2022-03-18 14:48:11 +01:00
Tony Snook 1f9141353c
IDEMPIERE-5063 Improve Unit Tests (#1232)
- Close DB connections after each unit test class
- POTest and QueryTest: use assert equals, use bigdecimal string constructor in preference to double
2022-03-09 11:00:29 +08:00
Carlos Ruiz a38aefe92e
IDEMPIERE-5198 Print Format Cache do not reload Print Format Items (#1197)
* IDEMPIERE-5198 Print Format Cache do not reload Print Format Items

* IDEMPIERE-5198 Print Format Cache do not reload Print Format Items / add reset(int id) for the cache

* IDEMPIERE-5198 Print Format Cache do not reload Print Format Items / change cache key from String to StringBuilder

Co-authored-by: hengsin <hengsin@gmail.com>
2022-02-25 16:45:33 +08:00
Carlos Ruiz 26aac62a4a
IDEMPIERE-5174 Disable System User (#1174) (#1182)
Fix wrong comparison changed in commit a9c4f7b - test case failing
Improve traceability of unit test
2022-02-12 12:29:20 +01:00
Tony Snook 0ee5faec8e
IDEMPIERE-5184 Cost Adjustment sets incorrect cost for other schema … (#1175)
* 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
2022-02-12 11:27:15 +08:00
hengsin 661550375e
IDEMPIERE-5183 Update JUnit Test Coverage Configuration (#1163) 2022-02-07 11:32:15 +01:00
Tony Snook 78b7dc32d0
IDEMPIERE-5173 fix Accounting fact quantity incorrect (#1150)
* IDEMPIERE-5173 fix Accounting fact quantity incorrect
- also add unit tests

* IDEMPIERE-5173 remove c_uom_id check

* IDEMPIERE-5173 Use MMatchInv.isReversal() in preference to MMatch.getReversal_ID() > 0

* IDEMPIERE-5173 Update isReversal() method 
- add new test for is Reversal() when reversing a credit memo
2022-02-05 15:47:52 +08:00
Tony Snook 2ce19a23cb
IDEMPIERE-5155 fix intermittant Inventory Test failure by sorting MStorageOnHand return value (#1153) 2022-01-30 15:57:32 +08:00
Tony Snook bfecd412a2
IDEMPIERE-5063 Improve Unit Tests - MatchInv Tests (#1144)
- Add MatchInv test using standard costing and check Invoice Price Variance 
- General improvements using assertEquals where appropriate and
  comparing actual values rather than just >0
- minor fixes to MProduct test
2022-01-26 09:51:56 +08:00
hengsin 0db580a7a0
IDEMPIERE-5163 2022-01 Platform update (#1142) 2022-01-25 15:58:06 +01:00
hengsin f934d62efc
IDEMPIERE-5155 Inventory Document: Auto picking of storage record should ignore record with Serial (#1141)
* IDEMPIERE-5155 Inventory Document: Auto picking of storage record should ignore record with Serial

* IDEMPIERE-5155 Inventory Document: Auto picking of storage record should ignore record with Serial

add unit test
2022-01-21 12:10:30 +01:00
Carlos Ruiz 06e9071a82
IDEMPIERE-4962 Performance: change PostgreSQL native dialect mode default to true / revert partially f4894c4cb (#1138)
Regression for problem solved at IDEMPIERE-4465 Native Postgres - Error on Convert Layer
Revert the changes on Convert_PostgreSQL and Convert_PostgreSQLTest
Fix the Convert_PostgreSQLTest to allow testing native and non-native cases
2022-01-19 21:06:20 +08:00
Tony Snook c8c0ae317e
IDEMPIERE-5159 Remove hard coded rounding in Doc_Production (#1137)
- plus multiple improvements to production unit tests
2022-01-19 11:09:03 +08:00
hengsin f2b70f7747
IDEMPIERE-5153 Cost Adjument Line Before Save: Update current cost price (#1131) 2022-01-15 16:55:39 +01:00
Carlos Ruiz e9f85bd985
IDEMPIERE-5147 Fix QueryTest.testPaging failing - IDEMPIERE-5004 (#1129)
Co-authored-by: hengsin <hengsin@gmail.com>
2022-01-12 13:12:22 +01:00
hengsin 916a5a9233
IDEMPIERE-4849 Nonsensical code in MProduction.createLines() (#1116) 2022-01-11 17:15:25 +01:00
hengsin ccdb4868f1
IDEMPIERE-5138 Storage Cleanup Fixes (#1117)
* IDEMPIERE-5138 Storage Cleanup Fixes

* IDEMPIERE-5138 Storage Cleanup Fixes
2022-01-11 16:49:53 +01:00
hengsin 9fd648b3e8
IDEMPIERE-5145 MMatchInv: add IsReversal method (#1120) 2022-01-11 16:20:19 +01:00
igorpojzl 60f76d9edf
IDEMPIERE-5147 Improve Query.first() methods - performance (#1124)
* IDEMPIERE-5147  Improve Query.first() methods - performance

* IDEMPIERE-5147 Query Fix move buildSQL

* IDEMPIERE-5147 Query Fix sql value.

* IDEMPIERE-5147 DB paging Optimalizayion Patch

* IDEMPIERE-5147 Query test fix
2022-01-11 16:10:55 +01:00
Tony Snook 0cf1055692
IDEMPIERE-5063 Improve Unit Tests - fix ProductionTest RollUp test (#1115)
- set mulch product category to Standard Costing category, so that the standard cost of the component is compared to the standard cost of the parent, mulchx.
2022-01-06 09:57:41 +08:00
Saulo José Gil 0eb89932fd
IDEMPIERE-5126 Virtual column lazy loading (#1095)
* 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.
2022-01-05 21:14:50 +08:00
hengsin 55e9e87f0b
IDEMPIERE-5139 BOM validation for Deactivation of Product (#1111) 2022-01-04 15:24:07 +01:00
hengsin 349e0f35a6
IDEMPIERE-5134 Clean up storage records after deactivation of product (#1104) 2022-01-04 10:14:56 +08:00
hengsin b1446ecf65
IDEMPIERE-5127 MProduct: add IsSerial method (#1096)
* IDEMPIERE-5127 MProduct: add IsSerial method

* Update serialVersionUID

Co-authored-by: Carlos Ruiz <carg67@gmail.com>
2021-12-28 16:36:43 +01:00
hengsin 184d9c5603
IDEMPIERE-5128 JUnit test fail to launch with Eclipse 2021-12 (4.22) (#1097)
Update JUnit to 5.8.1 from Eclipse 4.22
2021-12-28 14:02:35 +01:00
Carlos Ruiz fa62f421b9
iIDEMPIERE-5109 Release 9 Horizon - set master in v10 (#1092) 2021-12-24 17:18:24 +01:00
Carlos Ruiz 9ae4a2636e
IDEMPIERE-4214 Javadoc: correct warnings on newest java version (#1082)
* iIDEMPIERE-4214 Javadoc: correct warnings on newest java version / fix problem to generate javadoc again

* IDEMPIERE-4214 Javadoc: correct warnings on newest java version / Fix javadoc warnings
2021-12-23 11:44:23 +01:00
Carlos Ruiz 6fb0f8f359
IDEMPIERE-4836 Adding Access tab on Document Status (Activity) (#1081)
* IDEMPIERE-4836 Adding Access tab on Document Status (Activity) / fix unit test

* IDEMPIERE-4836 Adding Access tab on Document Status (Activity) / fix condition for access (must be AND instead of OR for role and user)
2021-12-23 11:44:01 +01:00
hengsin b88a77ffec
IDEMPIERE-5118 MUOMConversion fix and improvements (#1075) 2021-12-23 10:21:26 +01:00
hengsin 93ebe43cbd
IDEMPIERE-5121 MStorageOnHand API enhancements (#1079) 2021-12-23 10:14:22 +01:00
hengsin 774ba1d427
IDEMPIERE-5114 MProjectTypePhase: getTasks() should return only active task records (#1069) 2021-12-20 11:11:48 +01:00
hengsin a950ba9f00
IDEMPIERE-5113 MInfoWindow: column access doesn't work if From clause is created without synonym/alias (#1064) 2021-12-19 15:01:25 +01:00
Carlos Ruiz 7b30ab343b
IDEMPIERE-4836 Adding Access tab on Document Status (Activity) / peer review - fix multi-tenant issue (#1061) 2021-12-18 16:05:58 +01:00
Deepak Pansheriya da97b08d2c
IDEMPIERE-4836 : Document status access tab (#1001)
* IDEMPIERE-4836 : Document status access tab

* IDEMPIERE-4836 : Adding unit test

* IDEMPIERE-4836 : Fixing as per review comment

* IDEMPIERE-4836 : Fixing review comments
2021-12-18 16:03:06 +01:00
hengsin 95924e8578
IDEMPIERE-5103 Clear Parent Tax ID if a Tax Rate record is Summary (#1056) 2021-12-17 19:25:40 +01:00
hengsin dc698ff655
IDEMPIERE-5073 M_InOutLineMA.DateMaterialPolicy should comes from MStorageOnHand or Shipment instead of through user entry (#1027) 2021-12-14 15:35:04 +01:00
Carlos Ruiz a12ba93869
IDEMPIERE-4186 allow workflow to be suspended until after commit of actual transaction (#1034)
* IDEMPIERE-4186 allow workflow to be suspended until after commit of actual  transaction / fix Split Join = AND

* Add unit test for Split AND

* Fix test case - commit and cleanup the changes to workflow
2021-12-14 10:53:43 +08:00
hengsin 74b6604d57
IDEMPIERE-5065 Material Receipt Line not available for matching after… (#1019)
* IDEMPIERE-5065 Material Receipt Line not available for matching after reversal of Match PO

* IDEMPIERE-5065 Material Receipt Line not available for matching after reversal of Match PO

Fix unit test

* IDEMPIERE-5065 Material Receipt Line not available for matching after reversal of Match PO

Remove unreliable and potentially dangerous match po consolidation
2021-12-13 18:48:48 +01:00
hengsin 1da4e41f0a
IDEMPIERE-5095 MAttributeSet: add getMAttributeUse method (#1044) 2021-12-11 15:46:32 +01:00
hengsin 3530351601
IDEMPIERE-2172 Attribute set with mandatory type = When Shipping not … (#1040)
* IDEMPIERE-2172 Attribute set with mandatory type = When Shipping not working

Fix reversal and add more unit test

* IDEMPIERE-2172 Attribute set with mandatory type = When Shipping not working

Use constant for movement type checking
2021-12-08 16:18:44 +01:00