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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0033066
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementmajoralways2016-05-27 10:172016-06-17 19:38
ReporterJONHMView Statuspublic 
Assigned ToSanjota 
PriorityhighResolutionfixedFixed in Version3.0PR16Q3
StatusclosedFix in branchFixed in SCM revision30c157cff610
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toaferraz
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0033066: PL function "c_order_post1" does not take "recalculateDiscounts" parameter when passing a pInstance

DescriptionWhen passing a pInstance to a c_order_post1 PL funciton, it calculates the discounts automatically, omitting the third parameter of the function.
Steps To ReproduceAs you can see in the c_order_post1 function, if you don't use a pInstance, you can pass the third parameter (calculate discounts), but if you use a pInstance instead the parameter is omitted. We need to check the parameter into the table if a pInstance is used.
Proposed SolutionAdd a conditional checking the calculateDiscounts parameter into the table:

https://code.openbravo.com/erp/devel/pi/file/65a012587054/src-db/database/model/functions/C_ORDER_POST1.xml#l148 [^]

- LOOP
- v_Record_ID:=Cur_Parameter.Record_ID;
- v_User:=Cur_Parameter.AD_User_ID;
- END LOOP; -- Get Parameter

+ LOOP
+ v_Record_ID:=Cur_Parameter.Record_ID;
+ v_User:=Cur_Parameter.AD_User_ID;
+ IF(Cur_Parameter.ParameterName='recalculateDiscounts') THEN
+ v_recalculateDiscounts:=Cur_Parameter.P_String;
+ END IF;
+ END LOOP; -- Get Parameter
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0087095)
Sanjota (developer)
2016-06-08 17:14

Test Plan:

* Create order for the products with discount.
* Process order
* Observe that c_order_post1 will take "recalculateDiscounts" parameter even while passing a pInstance
(0087163)
hgbot (developer)
2016-06-10 14:36

Repository: erp/devel/pi
Changeset: 30c157cff610cbb9099e700b0e84d7445db93a4d
Author: Sanjota <sanjota.nelagi <at> promantia.com>
Date: Wed Jun 08 19:52:27 2016 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/30c157cff610cbb9099e700b0e84d7445db93a4d [^]

Fixes issue 33066: Fix to recalculateDiscounts issue in C_Order_Post1 function

When passing a pInstance to a c_order_post1 PL funciton, it calculates the discounts automatically, omitting the third parameter of the function.

---
M src-db/database/model/functions/C_ORDER_POST1.xml
---
(0087164)
aferraz (manager)
2016-06-10 14:40

Code review + Testing OK
(0087603)
hudsonbot (developer)
2016-06-17 19:38

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/0dc7be081b1c [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2016-05-27 10:17 JONHM New Issue
2016-05-27 10:17 JONHM Assigned To => Triage Finance
2016-05-27 10:17 JONHM Modules => Core
2016-05-27 10:17 JONHM Resolution time => 1467151200
2016-05-27 10:17 JONHM Triggers an Emergency Pack => No
2016-05-31 17:16 aferraz Assigned To Triage Finance => Sanjota
2016-06-08 17:09 Sanjota Status new => scheduled
2016-06-08 17:14 Sanjota Note Added: 0087095
2016-06-10 14:36 hgbot Checkin
2016-06-10 14:36 hgbot Note Added: 0087163
2016-06-10 14:36 hgbot Status scheduled => resolved
2016-06-10 14:36 hgbot Resolution open => fixed
2016-06-10 14:36 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/30c157cff610cbb9099e700b0e84d7445db93a4d [^]
2016-06-10 14:40 aferraz Review Assigned To => aferraz
2016-06-10 14:40 aferraz Note Added: 0087164
2016-06-10 14:40 aferraz Status resolved => closed
2016-06-10 14:40 aferraz Fixed in Version => 3.0PR16Q3
2016-06-17 19:38 hudsonbot Checkin
2016-06-17 19:38 hudsonbot Note Added: 0087603


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker