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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007318
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 06. Material requirement planning (MRP)majoralways2009-02-02 17:192009-02-03 11:15
ReporterjoanView Statuspublic 
Assigned Togorkaion 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branchpiFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version1.5.0_14-b03
OS VersionDebian EtchDatabase version8.3Ant version1.6.5
Product Version2.40SCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0007318: MRP_PurchaseOrder function wrong discount calculation

DescriptionOn the function MRP_PurchaseOrder, it calculates bad the discount due to parenthesis mistake.
Around line 221 it says something like
v_PriceStd, v_PriceActual*Cur_workproposal.QTY,((v_PriceList-v_PriceStd) / (v_PriceList * 100)),

And it should say
v_PriceStd, v_PriceActual*Cur_workproposal.QTY,((v_PriceList-v_PriceStd) / v_PriceList) * 100,

Steps To ReproduceLaunch an mrp with purchase sugestions
Launch the purchase sugestion to purchase orders
See that the lines of the purchase orders doens't have the discount correctly.
Proposed Solutionv_PriceStd, v_PriceActual*Cur_workproposal.QTY,((v_PriceList-v_PriceStd) / v_PriceList) * 100,
instead of
v_PriceStd, v_PriceActual*Cur_workproposal.QTY,((v_PriceList-v_PriceStd) / (v_PriceList * 100)),
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of defect 0005504 closedAinhoaPagola The discount field of the purchase order line is not correctly informed when using Purchase MRP 
depends on backport 0007335 closedgorkaion MRP_PurchaseOrder function wrong discount calculation 

-  Notes
(0013067)
AinhoaPagola (reporter)
2009-02-03 11:15

This bug was already reported and solved. Thank you anyway.

- Issue History
Date Modified Username Field Change
2009-02-02 17:19 joan New Issue
2009-02-02 17:19 joan Assigned To => rafaroda
2009-02-02 17:19 joan sf_bug_id 0 => 2557422
2009-02-03 10:57 psarobe Status new => scheduled
2009-02-03 10:57 psarobe Assigned To rafaroda => gorkaion
2009-02-03 10:57 psarobe fix_in_branch => trunk
2009-02-03 11:15 AinhoaPagola Regression testing => No
2009-02-03 11:15 AinhoaPagola Relationship added duplicate of 0005504
2009-02-03 11:15 AinhoaPagola Status scheduled => closed
2009-02-03 11:15 AinhoaPagola Note Added: 0013067
2009-02-03 11:15 AinhoaPagola Duplicate ID 0 => 5504
2009-02-03 11:15 AinhoaPagola Resolution open => duplicate


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker