Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0043011Openbravo ERP09. Financial managementpublic2020-01-27 14:272023-07-04 12:35
jorge_acosta 
Triage Platform Base 
highmajoralways
newopen 
5
 
 
Core
No
0043011: Costing Background Process can be executed 2 times, generating duplicate costings
Having 2 Costing Background Process with for example one of them with Organization = "*" and the other one with Organization = "one of the organizations with type Legal with accounting" , allows them to execute at the same time, so they generate duplicate costings
To reproduce:

- in the last version, unschedule the Costing Background Process
- create a new sales order and create a good shipment for it
- go to the product( i used the Avalanche transceiver ) added in the sales order and check its costing hasnt been calculated yet, in the product go to the transactions tab and check the transaction costs tab, it should be empty
- then create a new Costing Background Process with organization = "White Valley Spain S.A", schedule it at the same time that the one with organization = "*" ( in last version, just put every n minute, 1 minute and start time = any one with seconds like **:**:05 )
- check that you have 2 Costing Background Process, one with organization = "*" nad the other with organization = "White Valley Spain S.A"
- schedule both process, wait one minute, go to the product window and check that 2 transaction costs have been generated
No tags attached.
png capture-after.png (115,523) 2020-01-27 14:27
https://issues.openbravo.com/file_download.php?file_id=13917&type=bug
png
Issue History
2020-01-27 14:27jorge_acostaNew Issue
2020-01-27 14:27jorge_acostaAssigned To => Triage Finance
2020-01-27 14:27jorge_acostaFile Added: capture-after.png
2020-01-27 14:27jorge_acostaModules => Core
2020-01-27 14:27jorge_acostaResolution time => 1581894000
2020-01-27 14:27jorge_acostaTriggers an Emergency Pack => No
2020-01-27 14:33jorge_acostaDescription Updatedbug_revision_view_page.php?rev_id=20241#r20241
2020-01-30 15:41dmiguelezAssigned ToTriage Finance => AtulOpenbravo
2020-02-05 13:10dmiguelezNote Added: 0117471
2020-02-05 13:10dmiguelezAssigned ToAtulOpenbravo => platform
2020-02-05 13:10dmiguelezTypedefect => feature request
2022-02-01 08:07alostaleAssigned Toplatform => Triage Platform Base

Notes
(0117471)
dmiguelez   
2020-02-05 13:10   
This issue has been moved to design defect.

The Costing Background process is defined to 'Prevent Concurrent Executions'. As explained in the wiki, this functionality allows to prevent concurrent executions of the same process for the same parameters, in this case, for the same Organization: http://wiki.openbravo.com/wiki/Process_Group [^]

However, this functionality does not prevent concurrent executions for Organizations within the same Organization tree, this should be managed by the person who manages the implementation of the project.

This feature request is to enable prevent executions for Organizations that are within the same natural tree.