Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0013031 | Openbravo ERP | 07. Sales management | public | 2010-04-19 12:55 | 2010-05-18 21:43 |
|
Reporter | networkb | |
Assigned To | sivaraman | |
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | 2.40MP12 | |
Target Version | 2.40MP13 | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0013031: The shipment and invoice created after complete a POS Order have wrong data in the createdby and updatedby fields |
Description | The shipment and invoice created after complete a POS Order have wrong data in the createdby and updatedby fields |
Steps To Reproduce | -Login as Openbravo admin
-Enable on the session preferences the option to see the audit
-Create a sales order selecting the document type POS Order
-Add a line
-Complete the order.
-See that the new shipment and invoice created automatically
have the updatedby and createdby feles filled with "System Admin" |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0013023 | 2.40MP13 | closed | harikrishnan | When completing or processing documents the updatedby column is not updated properly | depends on | backport | 0013053 | 2.40MP13 | closed | sivaraman | The shipment and invoice created after complete a POS Order have wrong data in the createdby and updatedby fields | related to | defect | 0013033 | 2.40MP13 | closed | adrianromero | The create shipment from order process does not fill well the audit fields. |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-04-19 12:55 | networkb | New Issue | |
2010-04-19 12:55 | networkb | Assigned To | => adrianromero |
2010-04-19 12:55 | networkb | OBNetwork customer | => Yes |
2010-04-19 12:55 | networkb | Relationship added | related to 0013024 |
2010-04-19 12:57 | networkb | Relationship added | related to 0013033 |
2010-04-19 13:11 | networkb | version | => 2.40MP12 |
2010-04-19 13:11 | networkb | Target Version | => 2.40MP13 |
2010-04-19 13:18 | networkb | Note Added: 0026342 | |
2010-04-20 09:57 | adrianromero | Relationship deleted | related to 0013024 |
2010-04-20 09:57 | adrianromero | Relationship added | related to 0013023 |
2010-04-20 12:56 | adrianromero | Sticky Issue | No => Yes |
2010-04-20 12:57 | adrianromero | Sticky Issue | Yes => No |
2010-04-20 12:57 | adrianromero | Status | new => scheduled |
2010-04-20 12:57 | adrianromero | fix_in_branch | => pi |
2010-04-20 12:57 | adrianromero | Issue cloned | 0013053 |
2010-04-20 12:57 | adrianromero | Relationship added | depends on 0013053 |
2010-05-04 17:51 | sivaraman | Assigned To | adrianromero => sivaraman |
2010-05-04 17:54 | hgbot | Checkin | |
2010-05-04 17:54 | hgbot | Note Added: 0026935 | |
2010-05-04 17:54 | hgbot | Status | scheduled => resolved |
2010-05-04 17:54 | hgbot | Resolution | open => fixed |
2010-05-04 17:54 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/stable/2.40/rev/66ae42fbee99404bf43db5b22a0ded8f610fce73 [^] |
2010-05-04 18:03 | hgbot | Checkin | |
2010-05-04 18:03 | hgbot | Note Added: 0026938 | |
2010-05-04 18:03 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/stable/2.40/rev/66ae42fbee99404bf43db5b22a0ded8f610fce73 [^] => http://code.openbravo.com/erp/devel/pi/rev/8d31064fd72c402ed356d772ab12d82fcaa7d86a [^] |
2010-05-04 18:28 | sivaraman | Note Added: 0026940 | |
2010-05-06 11:10 | arunkumar | Note Added: 0026977 | |
2010-05-06 11:10 | arunkumar | Status | resolved => closed |
2010-05-07 00:00 | anonymous | sf_bug_id | 0 => 2997915 |
2010-05-18 21:43 | hudsonbot | Checkin | |
2010-05-18 21:43 | hudsonbot | Note Added: 0027480 | |
Notes |
|
|
|
|
(0026935)
|
hgbot
|
2010-05-04 17:54
|
|
Repository: erp/stable/2.40
Changeset: 66ae42fbee99404bf43db5b22a0ded8f610fce73
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo>
Date: Tue May 04 21:22:53 2010 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/66ae42fbee99404bf43db5b22a0ded8f610fce73 [^]
Fixes issue 13031: The shipment and invoice created after complete a POS Order have wrong data in the createdby and updatedby fields
---
M src-db/database/model/functions/C_INVOICE_CREATE.xml
M src-db/database/model/functions/C_ORDER_POST1.xml
---
|
|
|
(0026938)
|
hgbot
|
2010-05-04 18:03
|
|
Repository: erp/devel/pi
Changeset: 8d31064fd72c402ed356d772ab12d82fcaa7d86a
Author: Sivaraman Rajagopal <sivaraman.rajagopal <at> openbravo.com>
Date: Tue May 04 21:32:01 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/8d31064fd72c402ed356d772ab12d82fcaa7d86a [^]
Fixes issue 13031: The shipment and invoice created after complete a POS Order have wrong data in the createdby and updatedby fields
---
M src-db/database/model/functions/C_INVOICE_CREATE.xml
---
|
|
|
|
Steps to test:
1. Log on to Openbravo
2. Change user role to Openbravo Admin
3. Go to General Setup || Application || Session Preferences || Session Preferences
4. Enable Show audit and Save
5. Go to Sales Management || Transactions || Sales Order || Header
6. Create new sales order selecting the document type POS Order
7. Add a line with any product
8. Save and complete the order by clicking 'Complete' button
Root cause:
While completing the sales order, 'p_PInstance_ID' is validated in C_INVOICE_CREATE procedure. As sales order completion is not processed through 'p_PInstance_ID', it gets NULL value and therefore default user ID (0) is assigned while creating sales invoice. User ID of AD_PINSTANCE will be assigned only if 'p_PInstance_ID' is not null. To avoid setting default value for always, we have added a SELECT clause to fetch proper user ID value from C_ORDER table. In 2.40 version, additionally we have modified C_ORDER_POST1.xml in order to update 'UPDATEDBY' column.
Impact:
It has been verified that the fix resolves the issue without any other impact. |
|
|
|
|
|
|
|