Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024569Openbravo ERP07. Sales managementpublic2013-08-23 11:242014-05-07 18:11
maite 
AtulOpenbravo 
highminoralways
closedfixed 
5
 
3.0PR14Q3 
pramakrishnan
Core
No
0024569: Inconsistent "Discount" calculated when using "Discounts and Promotions"
Inconsistent "Discount" calculated when using "Discounts and Promotions"
1. Access "Discount and Promotions" window and define "Price Adjustment" of 10% for specific BP and Product
2. Access Sales Order window and create new record for previously chosen BP.
3. Add new line for previously chosen Product. Realize that Net Unit Price is properly affected and "Discount" field is set to 0.00
4. Access ""Discount and Promotions" window and modify defined Price Adjustment to set 100% Discount
5. Come back to Sales Order, add new line for same Product. Realize that Net Unit Price is properly affected and set to 0.00 (as discount is 100%) but "Discount" field is set to 100%

According to following documentation http://forge.openbravo.com/plugins/mwiki/index.php/Priceadperline/Specifications [^]
"discount" field should not be affected by Price Adjustments
No tags attached.
causes defect 00291713.0PR15Q2 closed AtulOpenbravo The sales order is not taking into account the unit price of the product when is 0 
Issue History
2013-08-23 11:24maiteNew Issue
2013-08-23 11:24maiteAssigned To => dmiguelez
2013-08-23 11:24maiteModules => Core
2013-08-23 11:24maiteTriggers an Emergency Pack => No
2013-08-23 11:25maiteTarget Version => 3.0MP28
2013-08-28 13:55dmiguelezAssigned Todmiguelez => jonalegriaesarte
2013-09-16 13:17jonalegriaesarteTarget Version3.0MP28 => 3.0MP29
2013-10-07 16:32jonalegriaesarteTarget Version3.0MP29 => 3.0MP30
2013-11-06 09:29jonalegriaesarteAssigned Tojonalegriaesarte => pramakrishnan
2013-12-02 09:54jonalegriaesarteTarget Version3.0MP30 => 3.0MP31
2014-01-02 12:38jonalegriaesarteTarget Version3.0MP31 => 3.0MP32
2014-03-11 16:47jonalegriaesarteResolution time => 1395702000
2014-03-31 16:17jonalegriaesarteTarget VersionPR14Q2 => PR14Q3
2014-04-01 11:57psarobeNote Added: 0065655
2014-04-01 11:58psarobeNote Edited: 0065655bug_revision_view_page.php?bugnote_id=0065655#r5646
2014-04-02 07:36AtulOpenbravoAssigned Topramakrishnan => AtulOpenbravo
2014-04-02 07:36AtulOpenbravoStatusnew => scheduled
2014-04-02 07:36AtulOpenbravofix_in_branch => pi
2014-04-16 14:20AtulOpenbravoReview Assigned To => pramakrishnan
2014-04-16 14:20AtulOpenbravofix_in_branchpi =>
2014-04-16 14:21hgbotCheckin
2014-04-16 14:21hgbotNote Added: 0066497
2014-04-16 14:21hgbotStatusscheduled => resolved
2014-04-16 14:21hgbotResolutionopen => fixed
2014-04-16 14:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/e367e4ce1f9852519224ff1ec15553f5759a3011 [^]
2014-04-16 14:23pramakrishnanNote Added: 0066498
2014-04-16 14:23pramakrishnanStatusresolved => closed
2014-05-07 18:11hudsonbotCheckin
2014-05-07 18:11hudsonbotNote Added: 0066944
2015-03-16 17:30aferrazRelationship addedcauses 0029171

Notes
(0065655)
psarobe   
2014-04-01 11:57   
(edited on: 2014-04-01 11:58)
See this link to understand the problem http://forge.openbravo.com/plugins/mwiki/index.php/Priceadperline/Specifications [^]

The problem is that the Base Net Unit Price or Base Gross Unit Price, depending if the pricelist has taxes or not, is set to zero when the discount is 100%. Take a look why this price is set to zero. It shouldn't be changed as it happens if the discount is <100

(0066497)
hgbot   
2014-04-16 14:21   
Repository: erp/devel/pi
Changeset: e367e4ce1f9852519224ff1ec15553f5759a3011
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Apr 15 16:11:19 2014 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/e367e4ce1f9852519224ff1ec15553f5759a3011 [^]

Fixes Issue 24569 Inconsistent Discount when using "Discounts and Promotions"

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_Amt.java
---
(0066498)
pramakrishnan   
2014-04-16 14:23   
Code Review + Testing - OK.
(0066944)
hudsonbot   
2014-05-07 18:11   
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/02ca2648bcdc [^]
Maturity status: Test