Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022239Openbravo ERP07. Sales managementpublic2012-11-08 16:512012-11-12 10:40
psarobe 
alostale 
immediatemajoralways
closedfixed 
5
pi 
3.0MP173.0MP17 
psarobe
Core
Pre packaging ( pi )
2012-10-31
http://code.openbravo.com/erp/devel/pi/rev/8ca012977061798716f14f8cb62322d0ad930d7d [^]
No
0022239: PIT: When you change the discount field, the gross unit price changes but net unit price is not recalculated again
PIT: When you change the discount field, the "gross unit price" changes but "net unit price" is not recalculated again
1. Configure a price list with PIT
2. Create a sales order header. Select that above price list
3. Move to lines and select a product. Notice that the "Gross unit price" and "Net Unit price" are filled. "Net Unit price" is calculated when changing "Gross unit price"
This is correct
4. Now change the "Discount" field. Notice the "Gross unit price" changes. This is correct. But notice the "Net Unit price" is not changing. This is wrong

Expected behaviour: "Net unit price" should always change when the "Gross unit price" changes
No tags attached.
related to defect 0021923 closed dmiguelez When the "net unit price" is changed or "gross unit price" the discount should change and the base unit price and gross 
has duplicate defect 0022245 closed dmiguelez Line net amount field not changes automatically based on the discount percentage. 
Issue History
2012-11-08 16:51psarobeNew Issue
2012-11-08 16:51psarobeAssigned To => alostale
2012-11-08 16:51psarobeModules => Core
2012-11-08 16:54psarobeRegression level => Pre packaging ( pi )
2012-11-08 16:54psarobeSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=4048#r4048
2012-11-08 17:17alostaleRelationship addedrelated to 0021923
2012-11-08 17:20alostaleRegression date => 2012-10-31
2012-11-08 17:20alostaleRegression introduced by commit => http://code.openbravo.com/erp/devel/pi/rev/8ca012977061798716f14f8cb62322d0ad930d7d [^]
2012-11-08 17:20alostaleSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=4049#r4049
2012-11-08 17:24hgbotCheckin
2012-11-08 17:24hgbotNote Added: 0054105
2012-11-08 17:24hgbotStatusnew => resolved
2012-11-08 17:24hgbotResolutionopen => fixed
2012-11-08 17:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e97cfb32893fa366f51a12ce4459f3d1cae834ad [^]
2012-11-09 09:17psarobeNote Added: 0054109
2012-11-09 09:17psarobeReview Assigned To => psarobe
2012-11-09 09:17psarobeStatusresolved => closed
2012-11-09 09:17psarobeFixed in Version => 3.0MP17
2012-11-09 12:44plujanRelationship addedhas duplicate 0022245
2012-11-12 10:40hudsonbotCheckin
2012-11-12 10:40hudsonbotNote Added: 0054152

Notes
(0054105)
hgbot   
2012-11-08 17:24   
Repository: erp/devel/pi
Changeset: e97cfb32893fa366f51a12ce4459f3d1cae834ad
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Nov 08 17:24:00 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/e97cfb32893fa366f51a12ce4459f3d1cae834ad [^]

fixed bug 22239: PIT: Changing discount updated gross prices but not net ones

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_Amt.java
---
(0054109)
psarobe   
2012-11-09 09:17   
Test 1 - PIT:
============
Change the discount and then the Gross unit price changes (so the base gross unit price) and then the Net unit price changes. This is OK!
Test 2 - PIT:
=============
Change the gross unit price (so the base gross unit price) and then Net unit price changes and also the discount. This is OK!
Test 3 - No PIT:
================
Change the net unit price (so the base net unit price changes) and then the discount. This is OK!
Test 4 - No PIT
===============
Change the discount and then the net unit price changes (so the base net unit price). This is OK!
(0054152)
hudsonbot   
2012-11-12 10:40   
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/b0eb45e159c6 [^]

Maturity status: Test