Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006296Openbravo ERP07. Sales managementpublic2008-12-01 12:342008-12-28 17:53
villind 
pheenan 
immediatemajoralways
closedfixed 
5
2.40 
 
Core
No
0006296: Generated invoices have incorrect audit information
When invoices are automatically generated the audit shows that the invoices are generated by system admin. This happens even if normal user starts the process.
Take correct information from ad_pinstance in C_INVOICE_CREATE procedure. Currently all audit information is hardcoded in this procedure.
No tags attached.
depends on backport 0006747 closed pheenan Generated invoices have incorrect audit information 
Issue History
2008-12-01 12:34villindNew Issue
2008-12-01 12:34villindAssigned To => rafaroda
2008-12-01 12:34villindsf_bug_id0 => 2370544
2008-12-01 12:34villindRegression testing => No
2008-12-01 16:45networkbPrioritynormal => immediate
2008-12-02 01:21pnudingAssigned Torafaroda => pheenan
2008-12-02 10:20pheenanStatusnew => scheduled
2008-12-02 10:20pheenanNote Added: 0010863
2008-12-02 10:20pheenanfix_in_branch => trunk
2008-12-02 16:37svnbotCheckin
2008-12-02 16:37svnbotNote Added: 0010907
2008-12-02 16:37svnbotStatusscheduled => resolved
2008-12-02 16:37svnbotResolutionopen => fixed
2008-12-02 16:37svnbotsvn_revision => 10875
2008-12-04 23:12svnbotCheckin
2008-12-04 23:12svnbotNote Added: 0010984
2008-12-04 23:12svnbotsvn_revision10875 => 10980
2008-12-05 01:15svnbotCheckin
2008-12-05 01:15svnbotNote Added: 0010986
2008-12-05 01:15svnbotsvn_revision10980 => 10981
2008-12-05 13:52svnbotCheckin
2008-12-05 13:52svnbotNote Added: 0011000
2008-12-05 13:52svnbotsvn_revision10981 => 10989
2008-12-18 09:45krishnaStatusresolved => closed
2008-12-28 17:50rafarodaStatusclosed => new
2008-12-28 17:50rafarodaResolutionfixed => open
2008-12-28 17:51rafarodaStatusnew => scheduled
2008-12-28 17:51rafarodaStatusscheduled => resolved
2008-12-28 17:51rafarodasvn_revision10989 => 10981
2008-12-28 17:51rafarodaResolutionopen => fixed
2008-12-28 17:51rafarodaNote Added: 0011747
2008-12-28 17:53rafarodaStatusresolved => closed
2008-12-28 17:53rafarodaNote Added: 0011748

Notes
(0010863)
pheenan   
2008-12-02 10:20   
To be worked 2nd December.
(0010907)
svnbot   
2008-12-02 16:37   
Repository: openbravo
Revision: 10875
Author: pheenan
Date: 2008-12-02 16:37:35 +0100 (Tue, 02 Dec 2008)

Fixed issue 0006296. Updates function to use the current user id to set the createdby and updatedby fields in the C_Invoice and C_Invoice_Line tables when inserting the new records

---
U trunk/src-db/database/model/functions/C_INVOICE_CREATE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=10875&sc=1 [^]
(0010984)
svnbot   
2008-12-04 23:12   
Repository: openbravo
Revision: 10980
Author: pheenan
Date: 2008-12-04 23:12:24 +0100 (Thu, 04 Dec 2008)

Fixed issue 0006376. Backport for original issue 0006296. Added AD_USER variable and use this to populate createdby and updatedby fields in invoice and invoiceline tables.

---
U branches/r2.40/src-db/database/model/functions/C_INVOICE_CREATE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=10980&sc=1 [^]
(0010986)
svnbot   
2008-12-05 01:15   
Repository: openbravo
Revision: 10981
Author: pheenan
Date: 2008-12-05 01:15:27 +0100 (Fri, 05 Dec 2008)

Fixed issue 0006296. Updates function to use the current user id to set the createdby and updatedby fields in the C_Invoice and C_Invoice_Line tables when inserting the new records. Reapplying fix previously committed and reverted.

---
U trunk/src-db/database/model/functions/C_INVOICE_CREATE.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=10981&sc=1 [^]
(0011000)
svnbot   
2008-12-05 13:52   
Repository: openbravo
Revision: 10989
Author: villind
Date: 2008-12-05 13:52:38 +0100 (Fri, 05 Dec 2008)

Merged r10980. Fixed issue 0006376. Backport for original issue 0006296. Added AD_USER variable and use this to populate createdby and updatedby fields in invoice and invoiceline tables.

---
_U branches/bonware/r2.40/
_U branches/bonware/r2.40/config/setup-tool/
_U branches/bonware/r2.40/eclipse.install.source.launch
_U branches/bonware/r2.40/export.database.launch
_U branches/bonware/r2.40/src-core/src/org/openbravo/database/OpenbravoDriverManagerConnectionFactory.java
U branches/bonware/r2.40/src-db/database/model/functions/C_INVOICE_CREATE.xml
_U branches/bonware/r2.40/update.database.launch
---

https://dev.openbravo.com/websvn/openbravo/?rev=10989&sc=1 [^]
(0011747)
rafaroda   
2008-12-28 17:51   
This issue was resolved in revision 10981.
(0011748)
rafaroda   
2008-12-28 17:53   
This issue was verified and closed on 2008-12-18. It was then re-opened to create the backport.