Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040519Openbravo ERP04. Warehouse managementpublic2019-04-04 11:252019-05-21 15:16
ngarcia 
nonofrancisco 
immediatecriticalalways
closedfixed 
5
 
3.0PR19Q3 
Sandrahuguet
Core
No
0040519: Cost Adjustments are being posted in accounting dates that belong to closed periods with wrong period
Cost Adjustments are being posted in accounting dates that belong to closed periods with wrong period
As group admin role:
   Unschedule the Acct Server process in Process Request window
   Go to Product window and select a stocked item
   Add a manual cost adjustment to a transaction of Dec-18
   Set it's accounting date as 01-12-2018
   Go to Open/Close Period Control window
   Close Dec-18

   Go to Cost Adjustment window and post the Manual Cost Correction created
   Check the accounting tab of one of the lines is 01-12-2018
   Check the document can be posted although the period is closed
   Go to Accounting tab and check the Period selected does not match the accounting date
   Go to Open/Close Period Control window
   Open Dec-18
   Try to unpost the document (by selecting the Delete accounting entry option) and check you will get the following error message:
      Period Closed. It is not possible to unpost a document in a closed period
No tags attached.
Issue History
2019-04-04 11:25ngarciaNew Issue
2019-04-04 11:25ngarciaAssigned To => Triage Finance
2019-04-04 11:25ngarciaModules => Core
2019-04-04 11:25ngarciaResolution time => 1556143200
2019-04-04 11:25ngarciaTriggers an Emergency Pack => No
2019-04-04 11:28jfrancesIssue Monitored: jfrances
2019-04-04 12:14SandrahuguetAssigned ToTriage Finance => nonofrancisco
2019-04-04 18:09nonofranciscoStatusnew => acknowledged
2019-04-04 21:17nonofranciscoStatusacknowledged => scheduled
2019-04-05 09:55ngarciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=18589#r18589
2019-04-08 22:58nonofranciscoNote Added: 0111032
2019-04-10 20:22nonofranciscoNote Edited: 0111032bug_revision_view_page.php?bugnote_id=0111032#r18617
2019-04-17 11:39hgbotCheckin
2019-04-17 11:39hgbotNote Added: 0111178
2019-04-17 11:39hgbotStatusscheduled => resolved
2019-04-17 11:39hgbotResolutionopen => fixed
2019-04-17 11:39hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c11d43f00adebb79d3026b8862c3b54782995d05 [^]
2019-04-17 11:40hgbotCheckin
2019-04-17 11:40hgbotNote Added: 0111179
2019-04-17 12:41SandrahuguetReview Assigned To => Sandrahuguet
2019-04-17 12:41SandrahuguetNote Added: 0111188
2019-04-17 12:41SandrahuguetStatusresolved => closed
2019-04-17 12:41SandrahuguetFixed in Version => 3.0PR19Q3
2019-05-21 15:16hudsonbotCheckin
2019-05-21 15:16hudsonbotNote Added: 0111980
2019-05-21 15:16hudsonbotCheckin
2019-05-21 15:16hudsonbotNote Added: 0111981

Notes
(0111032)
nonofrancisco   
2019-04-08 22:58   
(edited on: 2019-04-10 20:22)
As group admin role:
   Unschedule the Acct Server process in Process Request window
   Go to Product window and select a "Cerveza Ale"
   Go to Transactions Tab
   Select transaction with movement date 18-12-2018
   Add a manual cost adjustment
     Set it's accounting date as 01-12-2018
     Set total amount to 56000
   Add a manual cost adjustment to a transaction of Dec-18
   Set it's accounting date as 01-12-2018

   Go to Open/Close Period Control window
   Close Dec-18

   Go to Cost Adjustment window and post the Manual Cost Correction created
   Realize an error message is shown indicating the period is closed

(0111178)
hgbot   
2019-04-17 11:39   
Repository: erp/devel/pi
Changeset: c11d43f00adebb79d3026b8862c3b54782995d05
Author: Nono Carballo <nonofce <at> gmail.com>
Date: Mon Apr 15 12:37:16 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/c11d43f00adebb79d3026b8862c3b54782995d05 [^]

Fixes issue 40519: Prevents post CostAdjustment with closed periods

For CostAdjustments, the accounting date is a property of CostAdjustmentLines,
the date considered to get the period is the reference date of the document,
causing a CostAdjustment with reference date in an open period can be posted
even when there are lines with accounting date in a closed period.

This fix prevents a CostAdjustment to be posted if there is at least one line
with accounting date in a closed period.

---
M src/org/openbravo/erpCommon/ad_forms/DocCostAdjustment.java
---
(0111179)
hgbot   
2019-04-17 11:40   
Repository: erp/devel/pi
Changeset: 68baacc03b4a6d0fc5982b45478cffdec2297d43
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Mon Apr 15 17:58:20 2019 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/68baacc03b4a6d0fc5982b45478cffdec2297d43 [^]

related to issue 40519 code review changes

---
M src/org/openbravo/erpCommon/ad_forms/DocCostAdjustment.java
---
(0111188)
Sandrahuguet   
2019-04-17 12:41   
Code review + testing OK
(0111980)
hudsonbot   
2019-05-21 15:16   
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/9b8f37d9d85e [^]
Maturity status: Test
(0111981)
hudsonbot   
2019-05-21 15:16   
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/9b8f37d9d85e [^]
Maturity status: Test