Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0041295Openbravo ERP04. Warehouse managementpublic2019-07-05 11:382019-08-22 14:44
gorkaion 
collazoandy4 
highmajoralways
closedfixed 
5
 
3.0PR19Q4 
dmiguelez
Core
No
0041295: When a void receipt is a backdated transaction and the original receipt has adjustments the background process fails.
When a receipt has a cost adjustment. For example a negative stock correction.
If this receipt is voided some days later keeping the original movement date the background process fails if backdated transactions are fixed.

2019-07-05 11:30:16.12 - It is not possible to process a Cost Adjustment that includes lines of transactions whose cost is permanently adjusted.\nLines: 10
Go to Costing Rules and enable Backdated Transactions fix for F&B España.

Create a Goods Receipt and process it.
- BPartner: Bebidas Alegres
- Product: Agua Sin Gas
- Quantity: 100
- Movement date: 2 months before today.
Ensure that its cost is calculated.

On the Transactions Tab of the Agua sin Gas product. Search the transaction of the created Goods Receipt and add a manual adjustment:
- Amount: 20
- Incremental: True
- Unit Cost: false

Check that the total cost of the transaction is 20EUR higher than the unit cost.

Go back to the Goods Receipt and void it. Keep the same movement date than the original.

Execute the cost calculation background.
Check that it fails with error: It is not possible to process a Cost Adjustment that includes lines of transactions whose cost is permanently adjusted.\nLines: 10
No tags attached.
related to defect 0040863 closed nonofrancisco When cost of a void receipt is calculated only unit cost amount should be considered. 
Issue History
2019-07-05 11:38gorkaionNew Issue
2019-07-05 11:38gorkaionAssigned To => Triage Finance
2019-07-05 11:38gorkaionModules => Core
2019-07-05 11:38gorkaionResolution time => 1564092000
2019-07-05 11:38gorkaionTriggers an Emergency Pack => No
2019-07-05 11:38gorkaionIssue generated from0040863
2019-07-05 11:38gorkaionRelationship addedrelated to 0040863
2019-07-05 12:23SandrahuguetAssigned ToTriage Finance => collazoandy4
2019-07-06 02:02collazoandy4Statusnew => scheduled
2019-07-18 15:46dmiguelezNote Added: 0113522
2019-07-18 15:47hgbotCheckin
2019-07-18 15:47hgbotNote Added: 0113523
2019-07-18 15:47hgbotStatusscheduled => resolved
2019-07-18 15:47hgbotResolutionopen => fixed
2019-07-18 15:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/33d8fcf51e08e5acf060be42631f00b0e9ad511a [^]
2019-07-18 15:49dmiguelezReview Assigned To => dmiguelez
2019-07-18 15:49dmiguelezNote Added: 0113524
2019-07-18 15:49dmiguelezStatusresolved => closed
2019-07-18 15:49dmiguelezFixed in Version => 3.0PR19Q4
2019-08-22 14:44hudsonbotCheckin
2019-08-22 14:44hudsonbotNote Added: 0114158

Notes
(0113522)
dmiguelez   
2019-07-18 15:46   
Go to Costing Rules and enable Backdated Transactions fix for F&B España.

Create a Goods Receipt and process it.
- BPartner: Bebidas Alegres
- Product: Agua Sin Gas
- Quantity: 100
- Movement date: 2 months before today.
Ensure that its cost is calculated.

On the Transactions Tab of the Agua sin Gas product. Search the transaction of the created Goods Receipt and add a manual adjustment:
- Amount: 20
- Incremental: True
- Unit Cost: false

Check that the total cost of the transaction is 20EUR higher than the unit cost.

Go back to the Goods Receipt and void it. Keep the same movement date than the original.

Execute the cost calculation background.
Check that the process is executed successfully.
(0113523)
hgbot   
2019-07-18 15:47   
Repository: erp/devel/pi
Changeset: 33d8fcf51e08e5acf060be42631f00b0e9ad511a
Author: Armaignac <collazoandy4 <at> gmail.com>
Date: Tue Jul 16 00:24:28 2019 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/33d8fcf51e08e5acf060be42631f00b0e9ad511a [^]

Fixes issue 41295:When a void receipt is a backdated transaction and the
original receipt has adjustments the background process fails.

The isCostPermanent was not properly saved and cause a wrong Permanentelly Adjusted
Transaction check

---
M src/org/openbravo/costing/CostingServer.java
---
(0113524)
dmiguelez   
2019-07-18 15:49   
Code Review + Testing Ok
(0114158)
hudsonbot   
2019-08-22 14:44   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/ad3efd3bd07c [^]
Maturity status: Test