Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0055836 | Openbravo ERP | 09. Financial management | public | 2024-06-25 13:26 | 2024-07-23 09:25 | |||||||
Reporter | sdossantos | |||||||||||
Assigned To | aferraz | |||||||||||
Priority | high | Severity | major | Reproducibility | unable to reproduce | |||||||
Status | closed | Resolution | no change required | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | PR22Q2 | |||||||||||
Target Version | Fixed in Version | |||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | aferraz | |||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0055836: Processing order of cost adjustment lines | |||||||||||
Description | In the case of the price adjustment, the Cost Adjustment will be generated with the 2 lines of the good shipment that have the same transaction process date. So the process is going to take them according to line no. It will depend on the order in which they have been generated, whether they are taken in the same order in which they must be processed, taking into account whether the backdated ones are active, in that case they would have to be sorted first by movement date. | |||||||||||
Steps To Reproduce | When a landed cost is processed, the lines are ordered as follows: critLines.addOrder(Order.asc("trx." + MaterialTransaction.PROPERTY_TRANSACTIONPROCESSDATE)); critLines.addOrder(Order.asc("ca." + CostAdjustment.PROPERTY_DOCUMENTNO)); critLines.addOrder(Order.asc(CostAdjustmentLine.PROPERTY_LINENO)); critLines.addOrder(Order.asc(CostAdjustmentLine.PROPERTY_ADJUSTMENTAMOUNT)); critLines.addOrder(Order.asc("trx." + MaterialTransaction.PROPERTY_MOVEMENTDATE)); By: 1. trxProcessData: OK 2 document no: (they should all have the same because it is filtered by cost adjustment id) 3. line not ok 4. adjustment amount (there should be no line not equal) 5. movement date (??) | |||||||||||
Proposed Solution | Fix: they should be ordered by the same parameters as the transactions. And if you have 2 cost adjustment lines for the same transaction then order by line no. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2024-06-25 13:26 | sdossantos | New Issue | ||||||||||
2024-06-25 13:26 | sdossantos | Assigned To | => Triage Omni OMS | |||||||||
2024-06-25 13:26 | sdossantos | Modules | => Core | |||||||||
2024-06-25 13:26 | sdossantos | Triggers an Emergency Pack | => No | |||||||||
2024-06-25 13:51 | frank_gonzalez | Note Added: 0166307 | ||||||||||
2024-06-25 13:56 | Practics | Issue Monitored: Practics | ||||||||||
2024-07-05 08:49 | aferraz | Relationship added | related to 0055837 | |||||||||
2024-07-05 08:49 | aferraz | Assigned To | Triage Omni OMS => igor_trebol | |||||||||
2024-07-05 10:34 | hgbot | Note Added: 0166709 | ||||||||||
2024-07-12 10:04 | aferraz | Assigned To | igor_trebol => aferraz | |||||||||
2024-07-18 14:56 | aferraz | Review Assigned To | => aferraz | |||||||||
2024-07-18 14:56 | aferraz | Note Added: 0167134 | ||||||||||
2024-07-18 14:56 | aferraz | Status | new => closed | |||||||||
2024-07-18 14:56 | aferraz | Resolution | open => no change required | |||||||||
2024-07-23 09:25 | hgbot | Note Added: 0167253 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|