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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0007335
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] 06. Material requirement planning (MRP)majoralways2009-02-02 17:192009-02-03 11:16
ReporterjoanView Statuspublic 
Assigned Togorkaion 
PrioritynormalResolutionduplicateFixed in Version
StatusclosedFix in branch2.40Fixed 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

0007335: 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 
blocks defect 0007318 closedgorkaion MRP_PurchaseOrder function wrong discount calculation 

-  Notes
(0013068)
AinhoaPagola (reporter)
2009-02-03 11:16

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

- Issue History
Date Modified Username Field Change
2009-02-03 10:57 psarobe Type defect => backport
2009-02-03 10:57 psarobe fix_in_branch => 2.40
2009-02-03 11:09 rafaroda Assigned To rafaroda => gorkaion
2009-02-03 11:16 AinhoaPagola Regression testing => No
2009-02-03 11:16 AinhoaPagola Relationship added duplicate of 0005504
2009-02-03 11:16 AinhoaPagola Status scheduled => closed
2009-02-03 11:16 AinhoaPagola Note Added: 0013068
2009-02-03 11:16 AinhoaPagola Duplicate ID 0 => 5504
2009-02-03 11:16 AinhoaPagola Resolution open => duplicate


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker