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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0017016
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajorhave not tried2011-04-19 10:282011-05-25 16:39
ReporterAinhoaPagolaView Statuspublic 
Assigned Tojonalegriaesarte 
PriorityurgentResolutionunable to reproduceFixed in Version
StatusclosedFix in branch2.50Fixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product Version3.0RC7SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0017016: Invoice Total Amount not properly updated when lines are deleted

DescriptionThe invoice total amount is not properly updated when a line is deleted.
In an invoice with more than one line with the same tax amount, when a line is deleted the Total Amount of the header is not properly updated.
Steps To ReproduceWith sampledata in Openbravo 2.50:
- Create a new header.
- Create a new line for a product. Set unit price to 100 and taxes 16%.
The header has total amount 116 (correct) and a line is created in the tax tab.
- Create a second line for a product. Set unit price to 100 and taxes to 16.
The header has total amount 232 (correct) and the line in the tax tab is updated to 32
- Delete a line.
The tax tab is properly updated. The header has a total amount of 132, instead of 116. That is, the line net amount is decreased from the total amount, but the taxes are not.
Proposed SolutionError is possibly on line 243 in c_orderline_trg2.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00171172.50MP30 closedadrianromero When leaving an invoice without lines tax amount still appears in invoice header 
blocks backport 00168452.50MP31 closedjonalegriaesarte Invoice Total Amount not properly updated when lines are deleted 

-  Notes
(0037435)
adrianromero (manager)
2011-05-25 16:39

This issue cannot be reproduced in an 3.0 environment. The reason is probably because in 3.0 hibernate is in charge of deleting the line taxes when deleting lines in invoices and orders and not the on delete cascade option of the foreign key constraig of line taxes.

- Issue History
Date Modified Username Field Change
2011-05-05 08:43 AinhoaPagola Type defect => backport
2011-05-05 08:43 AinhoaPagola fix_in_branch => 2.50
2011-05-12 10:05 maite Relationship added related to 0017117
2011-05-13 11:02 AinhoaPagola Assigned To AinhoaPagola => jonalegriaesarte
2011-05-25 11:43 adrianromero Type backport => defect
2011-05-25 11:43 adrianromero version 2.50MP28 => 3.0RC7
2011-05-25 11:43 adrianromero Target Version 2.50MP30 =>
2011-05-25 16:39 adrianromero Note Added: 0037435
2011-05-25 16:39 adrianromero Status scheduled => closed
2011-05-25 16:39 adrianromero Resolution open => unable to reproduce


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker