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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0016613
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajoralways2011-04-01 18:002011-04-06 00:00
ReporterjonalegriaesarteView Statuspublic 
Assigned Tojonalegriaesarte 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision81b794af4945
ProjectionnoneETAnoneTarget Version3.0RC6
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0016613: Wrong "adjusted price" when using price adjustments

Description"Adjusted price" of Price Adjustments tab is recalculated by m_get_offer_std_price function when saving order line. If working with decimals "adjusted price" could be different to order line price due to rounding.
"Adjusted price" should be directly copy from order line instead of recalculated again to avoid this difference
Steps To Reproduce1. Master Data Management || Pricing || Price Adjustments || Adjustments:
  starting date= 08/02/2011
  Discount %= 30
  Included Business Partners= Only those defined --> Add "mafalda" in BP tab
  Included Products = Only those defined --> Add "hammer" in BP tab
2. Master Data Management || Product || Product >> Price : search for hammer and set 3 prices for "Mafalda price list" to 3.75
3. Sales Management || Transactions || Sales Order || Header : create order for mafalda
4. Sales Management || Transactions || Sales Order || Header >> Lines : add line for hammer and save.
5. Navigate to Sales Management || Transactions || Sales Order || Header >> Lines >> Price Adjustments : realize that "Adjusted Price" is 3.76 instead of 3.75

Problem is in function m_get_offer_std_price (which is called from c_orderline_trg2): it performs arithmetic operation and return number with several decimals, which is again rounded causing the error.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00158882.50MP27 closedjonalegriaesarte Wrong "adjusted price" when using price adjustments 

-  Notes
(0035479)
hgbot (developer)
2011-04-01 18:04

Repository: erp/devel/pi
Changeset: 81b794af4945ecb8c1e6dc61582c9c79898ead7f
Author: Egoitz Castillo <egoitz.castillo <at> openbravo.com>
Date: Fri Apr 01 18:03:08 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/81b794af4945ecb8c1e6dc61582c9c79898ead7f [^]

Fixes issue 0016613: Wrong "adjusted price" when using price adjustments
Now the difference is calculated based on the price standard.

---
M src-db/database/model/triggers/C_ORDERLINE_TRG2.xml
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_Amt.java
---
(0035528)
maite (developer)
2011-04-04 12:26

verified

- Issue History
Date Modified Username Field Change
2011-04-01 18:00 jonalegriaesarte New Issue
2011-04-01 18:00 jonalegriaesarte Assigned To => jonalegriaesarte
2011-04-01 18:00 jonalegriaesarte Modules => Core
2011-04-01 18:00 jonalegriaesarte Relationship added related to 0015888
2011-04-01 18:04 hgbot Checkin
2011-04-01 18:04 hgbot Note Added: 0035479
2011-04-01 18:04 hgbot Status new => resolved
2011-04-01 18:04 hgbot Resolution open => fixed
2011-04-01 18:04 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/81b794af4945ecb8c1e6dc61582c9c79898ead7f [^]
2011-04-04 12:26 maite Note Added: 0035528
2011-04-04 12:26 maite Status resolved => closed
2011-04-06 00:00 anonymous sf_bug_id 0 => 3276672


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker