[log4j2] Adding different configurations for test, run and build environments.
Fixes Issue
39474: Commission calculation error
When commission is set as Cascade = Yes, comission details
with invoiceline or orderline are deleted before creating
lines are same subsequent invoiceline or orderline.
Hence the information about the amount is lost once such
lines are deleted. To keep track amounts of the multiple
invoiceline or orderline they are stored in variable and
added to same subsequent invoiceline or orderline being
created.
Fixes Issue
39616. When searching for previously created
Cost Adjustment Lines take into account different currencies.
This is important for Landed Costs in which the same adjustment
can happen for the same transaction with different currencies.
* Create new API to be able to send the currency of the Landed
Cost line as a parameter
* Use the currency in the Query to filter the Cost Adjustment Lines
* Send the Landed Cost Currency when creating a new Cost Adjustment
Line
Related to issue
39617: TestUtils declared as public to be used by AWO tests
Fixed issue
39617: Code review improvements
Fixed db consistency.
Avoid useless usage of flush() and commitAndClose(). Refreshing needed objects instead.
TestUtils class declared at package level.
Refactor InvoiceGeneratorFromGoodsShipment class to improve code cleanliness.
- Pass Process Invoice as parameter
- Declare enum with the list of supported Invoice Terms
- Avoid to store hibernate objects as class variables
- Properly manage memory consumption by evicting useless objects
- Simplify exception management
- Validate order line is returned by C_Invoice_Candidate_V
- Take into account only completed invoices
- Properly calculate pending qty to invoice
- Reduce complexity in several methods
- Get the invoice document type using the standard AD_GET_DOCTYPE
HTML/XML/Java related to ProcessGoods:
- It now follows Openbravo standards (parse dates and checkbox, remove useless catch)
- Added default display logic hidden to invoice related fields