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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0021923
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajoralways2012-10-11 19:102012-11-12 10:45
ReporterpsarobeView Statuspublic 
Assigned Todmiguelez 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision8ca012977061
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Todmiguelez
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0021923: When the "net unit price" is changed or "gross unit price" the discount should change and the base unit price and gross

DescriptionWhen you change the net unit price the base unit price is not changing so the discount remains the same:

discount = Net price list - Base net unit price

discount of promotions = Base unit price - net unit price

See http://forge.openbravo.com/plugins/mwiki/index.php/Priceadperline/Specifications [^]

So if you change the net unit price the discount remains the same. This what we want to fix. The solution must be:

Scenario:
* Net Price list: 10
* Base net unit price:8
* Net unit price: 6

Discount=20%
Promotions: -2

If you change the net unit price to 5 it should work like this:
* Net Price list: 10
* Base net unit price:7
* Net unit price: 5

So finally the discount would be: 30% and promotion -2
Steps To Reproduce1. Go Sales order window and click new and save the header with a price list with out price including taxes and with the configuration describe above
2. Select a line and the product
* Net Price list: 10
* Base net unit price:8
* Net unit price: 6
3. Change the net unit price to 5
Notice the discount remains the same: 20%. Wrong It should be 30%
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00222393.0MP17 closedalostale PIT: When you change the discount field, the gross unit price changes but net unit price is not recalculated again 

-  Notes
(0053777)
hgbot (developer)
2012-10-30 08:16

Repository: erp/devel/pi
Changeset: 8ca012977061798716f14f8cb62322d0ad930d7d
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Oct 25 12:47:36 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/8ca012977061798716f14f8cb62322d0ad930d7d [^]

[discount] Fixed price actual price standard calculation when manually changed
fixed bug 21923

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Amt.java
M src/org/openbravo/erpCommon/ad_callouts/SL_Invoice_Product.java
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_Amt.java
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product.java
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_Product_data.xsql
---
(0053935)
hudsonbot (developer)
2012-10-31 13:31

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/9e773cbcb723 [^]

Maturity status: Test
(0054154)
dmiguelez (developer)
2012-11-12 10:45

There was an issue, but is now fixed: 0022239

Code Review + Testing OK

- Issue History
Date Modified Username Field Change
2012-10-11 19:10 psarobe New Issue
2012-10-11 19:10 psarobe Assigned To => dmiguelez
2012-10-11 19:10 psarobe Modules => Core
2012-10-30 08:16 hgbot Checkin
2012-10-30 08:16 hgbot Note Added: 0053777
2012-10-30 08:16 hgbot Status new => resolved
2012-10-30 08:16 hgbot Resolution open => fixed
2012-10-30 08:16 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8ca012977061798716f14f8cb62322d0ad930d7d [^]
2012-10-31 13:31 hudsonbot Checkin
2012-10-31 13:31 hudsonbot Note Added: 0053935
2012-11-08 17:17 alostale Relationship added related to 0022239
2012-11-12 10:45 dmiguelez Review Assigned To => dmiguelez
2012-11-12 10:45 dmiguelez Note Added: 0054154
2012-11-12 10:45 dmiguelez Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker