Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022165Openbravo ERP07. Sales managementpublic2012-10-30 13:082012-10-31 23:00
alostale 
dmiguelez 
immediatemajoralways
closedfixed 
5
 
3.0MP17 
Core
Production - QA Approved
2012-09-24
https://code.openbravo.com/erp/devel/pi/rev/bd01edf33b85b09616570957afa0662ef35996b1 [^]
yes
0022165: PIT: Incorrect Invoice Gross Amount calculation
Using a price list that includes taxes, editing invoice lines makes total gross amount in header to be incorrectly computed.
-Create a sales price list including taxes, add a version and include at least one product with unit price and list price: 10€
-Create a new sales invoice and select the price list created above
-Add a new line with qty 1, save
-Check header: total gross amount is 10 -> OK
-Change qty in line to 2, save.
-Line gross amount is 20 -> OK
-Check header: total gross amount should be 20, but it is 18.26 instead -> ERROR

Finally when the invoice is processed, amounts are recalculated so they are finally set correctly.

This affects only to invoices, testing the same steps in orders works fine.
No tags attached.
Issue History
2012-10-30 13:08alostaleNew Issue
2012-10-30 13:08alostaleAssigned To => dmiguelez
2012-10-30 13:08alostaleModules => Core
2012-10-30 13:09alostaleRegression level => Production - QA Approved
2012-10-30 13:09alostaleNote Added: 0053819
2012-10-30 14:01alostaleSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=4028#r4028
2012-10-30 19:02dmiguelezRegression date => 2012-09-24
2012-10-30 19:02dmiguelezRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/bd01edf33b85b09616570957afa0662ef35996b1 [^]
2012-10-31 13:55hgbotCheckin
2012-10-31 13:55hgbotNote Added: 0053945
2012-10-31 13:55hgbotStatusnew => resolved
2012-10-31 13:55hgbotResolutionopen => fixed
2012-10-31 13:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e28f59d8ece557dcd961c1429f8be3eb3444fca0 [^]
2012-10-31 14:01gorkaionReview Assigned To => gorkaion
2012-10-31 14:01gorkaionStatusresolved => closed
2012-10-31 23:00hudsonbotCheckin
2012-10-31 23:00hudsonbotNote Added: 0053962

Notes
(0053819)
alostale   
2012-10-30 13:09   
This regression was introduced in mp16.

Tested in:
*mp15.1 -> OK
*mp16 -> FAILS
(0053945)
hgbot   
2012-10-31 13:55   
Repository: erp/devel/pi
Changeset: e28f59d8ece557dcd961c1429f8be3eb3444fca0
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Wed Oct 31 13:53:12 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e28f59d8ece557dcd961c1429f8be3eb3444fca0 [^]

Fixes Issue 22165: Removes unnecessary update in Invoice Header.

---
M src-db/database/model/functions/C_INVOICETAX_ROUNDING.xml
---
(0053962)
hudsonbot   
2012-10-31 23:00   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/d15aedbe3e2f [^]

Maturity status: Test