Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013254Openbravo ERP09. Financial managementpublic2010-05-05 10:592010-05-25 09:28
harikrishnan 
harikrishnan 
normalmajorhave not tried
closedfixed 
5
pi 
pi 
Core
No
0013254: When completing or processing documents the updatedby column is not updated properly
These are the places where the audit fields are not properly updated.

1.Payment Status Management
2.Open/Close Period Control
3.Amortization
-Create a document with one user
Process or complete with other user
See that the updatedby is not properly updated.
No tags attached.
blocks defect 0013228pi closed adrianromero When completing or processing documents the updatedby column is not updated properly 
Issue History
2010-05-07 08:45harikrishnanTypedefect => backport
2010-05-07 08:45harikrishnanfix_in_branch => 2.40
2010-05-07 08:46harikrishnanAssigned Todalsasua => harikrishnan
2010-05-07 08:49hgbotCheckin
2010-05-07 08:49hgbotNote Added: 0027023
2010-05-07 08:49hgbotStatusscheduled => resolved
2010-05-07 08:49hgbotResolutionopen => fixed
2010-05-07 08:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/69f659895ab29390770ddef7fc3fb4bb9cc4e02f [^]
2010-05-07 08:53harikrishnanNote Added: 0027024
2010-05-25 09:28arunkumarNote Added: 0027700
2010-05-25 09:28arunkumarStatusresolved => closed

Notes
(0027023)
hgbot   
2010-05-07 08:49   
Repository: erp/stable/2.40
Changeset: 69f659895ab29390770ddef7fc3fb4bb9cc4e02f
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Fri May 07 12:17:45 2010 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/69f659895ab29390770ddef7fc3fb4bb9cc4e02f [^]

Fixes Issue 13254: When completing or processing documents the updatedby column is not updated properly.

---
M src-db/database/model/functions/A_AMORTIZATION_PROCESS.xml
M src-db/database/model/functions/C_DP_MANAGEMENT_POST.xml
---
(0027024)
harikrishnan   
2010-05-07 08:53   
Steps to test:
*Create two new user.
    1.UserA
    2.userB
*Login as UserA
*Create new record in each above mentioned section(Don't complete it or process it)
*Login as UserB and complete all the record above created.


Root cause & solution:
Audit fields are not properly updated.Hence the user id is taken from the pinstance table and used in update and insert statement.

Impact:
The impact other then these files are.
C_BANKSTATEMENT_POST.xml
C_REMITTANCE_POST.xml
(0027700)
arunkumar   
2010-05-25 09:28   
Discussed with the developer.Open/close period control menu is not available in 2.40.So the fix is not applicable for that. Other than this rest of the two items are tested and working fine.