Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0031088
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 04. Warehouse managementmajoralways2015-09-14 12:562015-10-07 16:50
ReporterVictorVillarView Statuspublic 
Assigned Tovmromanos 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision007045d0abe6
ProjectionnoneETAnoneTarget Version3.0PR15Q4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Todmiguelez
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0031088: It should not be possible to define the Costing background process for Organizations not Legal

DescriptionIt should not be possible to define the Costing background process for Organizations not Legal
Steps To ReproduceAs Admin role,
  Go to Process Request window:
     create a new register for España Región Norte.

This is wrong behavior which could cause inconsistent cost values. It should be possible only for Legals or any ancestor (not children organizations)
Proposed SolutionDefine an EntityEventObserver to avoid saving (insert and update) the record when the process is the Costing background and the organization has an ancestor which is a legal entity

Add a similar validation in the costing background process itself for the context organization
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 00308153.0PR16Q1 closedvmromanos It should not be possible to define the Costing background process for Organizations not Legal 

-  Notes
(0080866)
hgbot (developer)
2015-10-07 16:50

Repository: erp/backports/3.0PR15Q4
Changeset: 007045d0abe6e9f25ce9ef002d26939a3bcda97e
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Wed Sep 30 16:13:10 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q4/rev/007045d0abe6e9f25ce9ef002d26939a3bcda97e [^]

Fixed bug 31088: Scheduled Organization for Costing background process

The Costing Background Process should only be scheduled for a legal entity or any of its ancestor.

The fix adds a validation in both the ProcessRequestEventHandler, so each time a record is saved/updated the validation is run, and in the CostingBackground class itself to control wrong process request scheduled before this validation.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/costing/CostingBackground.java
M src/org/openbravo/costing/CostingUtils.java
M src/org/openbravo/event/ProcessRequestEventHandler.java
---
(0080867)
dmiguelez (developer)
2015-10-07 16:50

Code Review + Testing Ok

- Issue History
Date Modified Username Field Change
2015-10-07 16:49 dmiguelez Type defect => backport
2015-10-07 16:49 dmiguelez Target Version 3.0PR16Q1 => 3.0PR15Q4
2015-10-07 16:50 hgbot Checkin
2015-10-07 16:50 hgbot Note Added: 0080866
2015-10-07 16:50 hgbot Status scheduled => resolved
2015-10-07 16:50 hgbot Resolution open => fixed
2015-10-07 16:50 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/9bcc5cdaf9996b5bb29aee3422f66f79c589f039 [^] => http://code.openbravo.com/erp/backports/3.0PR15Q4/rev/007045d0abe6e9f25ce9ef002d26939a3bcda97e [^]
2015-10-07 16:50 dmiguelez Review Assigned To => dmiguelez
2015-10-07 16:50 dmiguelez Note Added: 0080867
2015-10-07 16:50 dmiguelez Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker