Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013190Openbravo ERP07. Sales managementpublic2010-05-03 17:202010-05-20 11:15
networkb 
harikrishnan 
highminoralways
closedfixed 
5
2.50MP14 
2.50MP17 
Core
No
0013190: Wrong amount value in Invoice Header
When you create a header invoice and add a line, you will see Total Net Amount and Total Gross Amount values in header. If you then delete the line, you will continue seeing this values in header.
So you are seeing wrong information in invoice's header as it has not lines.
1. Sales Management || Transactions || Sales Invoice || Header : create record
2. Sales Management || Transactions || Sales Invoice || Header >> Lines : add a line
3. Go back to header and realize that Totals appear
4. Go back to Lines and delete the line
5. Go back to Header and realize that Totals continue appearing, although they are not real as they should be zero again
No tags attached.
has duplicate defect 00131582.50MP17 closed adrianromero Complete and reactivate sales invoice- delete the lines - Now Total Net Amount and Total Gross Amount are not zero 
Issue History
2010-05-03 17:20networkbNew Issue
2010-05-03 17:20networkbAssigned To => adrianromero
2010-05-03 17:32networkbRelationship addedhas duplicate 0013158
2010-05-03 18:37psarobeStatusnew => scheduled
2010-05-03 18:37psarobefix_in_branch => pi
2010-05-17 11:28harikrishnanAssigned Toadrianromero => harikrishnan
2010-05-17 11:29hgbotCheckin
2010-05-17 11:29hgbotNote Added: 0027357
2010-05-17 11:29hgbotStatusscheduled => resolved
2010-05-17 11:29hgbotResolutionopen => fixed
2010-05-17 11:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a768ad8bc4d8bd173d1b7212cb371347a73d6256 [^]
2010-05-17 11:30harikrishnanNote Added: 0027358
2010-05-17 19:45sureshbabuNote Added: 0027392
2010-05-17 19:45sureshbabuStatusresolved => closed
2010-05-18 00:01anonymoussf_bug_id0 => 3002961
2010-05-20 11:15hudsonbotCheckin
2010-05-20 11:15hudsonbotNote Added: 0027579

Notes
(0027357)
hgbot   
2010-05-17 11:29   
Repository: erp/devel/pi
Changeset: a768ad8bc4d8bd173d1b7212cb371347a73d6256
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Mon May 17 14:59:02 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/a768ad8bc4d8bd173d1b7212cb371347a73d6256 [^]

Fixes Issue 13190 Before in the trigger the total net amount is not calculated during the deletion of the trigger.

---
M src-db/database/model/triggers/C_INVOICELINE_TRG2.xml
---
(0027358)
harikrishnan   
2010-05-17 11:30   
Steps to Test:

*Create a invoice header under that create two lines.
*Check the total net amount and delete the above created lines.
*Now check the total amount it ll be turned to 0.

Root Cause:

*Before in the trigger the total net amount is not calculated during the deletion of the trigger.

Impact:

Their is no impact because of this commit.
(0027392)
sureshbabu   
2010-05-17 19:45   
verified
(0027579)
hudsonbot   
2010-05-20 11:15   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/a768ad8bc4d8 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/a7901e097e1a [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17407.obx [^]