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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0037334
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 04. Warehouse managementmajoralways2017-11-20 18:352017-11-30 18:41
ReporterngarciaView Statuspublic 
Assigned Tononofrancisco 
PriorityurgentResolutionfixedFixed in Version3.0PR18Q1
StatusclosedFix in branchFixed in SCM revisione5b78d273dd8
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Merge Request Status
Review Assigned Todmiguelez
OBNetwork customerOBPS
Web browser
ModulesCore
Support ticket
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0037334: If same product is consumed and produced in same Bill Of Materials Production, produced transaction cost is calculated first

DescriptionIf same product is consumed and produced in same Bill Of Materials Production, produced transaction cost is calculated first if the production plan in which it is consumed produces more quantity than the production plan in which it is produced
Steps To ReproduceAs group admin role:
   Create a product BOM1
   Set it as Bill Of Materials
   Add Cerveza Ale to it in Bill Of Materials tab and Verify BOM

   Create a new product BOM2
   Set it as Bill Of Materials
   Add 0.5 units of BOM1 and Verify BOM

   Create a BOM Production
   Add two Product Plans:
      - First to produce 1 unit of BOM1
      - Second to produce 2 units of BOM2

   Create Production

   Add -1 unit of BOM1 product in second production plan (It was not automatically added because there is not stock)

   Process Production

   Launch Costing Background Process and check the transaction related with consumed BOM1 is calculated before the transaction related with produced BOM1
  
   In Product - Costing tab, Total Movement Quantity and Total Stock Valuation are taken into account the negative transaction when calculating the cost of the positive transaction that happened before
TagsNo tags attached.
Attached Files? file icon BOMProduction.fix [^] (4,299 bytes) 2017-11-21 18:41

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0100707)
nonofrancisco (viewer)
2017-11-24 15:00

As group admin role:
* Create a product BOM1
  Set it as Bill Of Materials
  Add 1 unit Cerveza Ale to it in Bill Of Materials tab and Verify BOM

* Create a new product BOM2
  Set it as Bill Of Materials
  Add 0.5 units of BOM1 and Verify BOM

* Create a BOM Production
  Add two Product Plans:
   - First to produce 1 unit of BOM1
   - Second to produce 2 units of BOM2

* Create Production

* Add -1 unit of BOM1 product in second production plan (It was not automatically added because there is not stock)

* Process Production

* Launch Costing Background Process

* Select Costing tab of product BOM1 and verify:
  Cost: 1.36 (same as Cerveza Ale)
  Quantity: 1
  Total Stock Valuation: 1.36

* Select Costing tab of product BOM2 and verify
  Cost: 0.68
  Quantity: 2
  Total Stock Valuation: 1.36
(0100843)
dmiguelez (viewer)
2017-11-30 18:35

As group admin role:
* Create a product BOM1
  Set it as Bill Of Materials
  Add 1 unit Cerveza Ale to it in Bill Of Materials tab and Verify BOM

* Create a new product BOM2
  Set it as Bill Of Materials
  Add 0.5 units of BOM1 and Verify BOM

* Create a new product BOM3
  Set it as Bill Of Materials
  Add 0.25 units of BOM2 and Verify BOM

* Create a BOM Production
  Add three Product Plans:
   - First to produce 1 unit of BOM1
   - Second to produce 2 units of BOM2
   - Third to produce 4 units of BOM3

* Create Production

* Add -1 unit of BOM1 product in second production plan (It was not automatically added because there is not stock)
* Add -1 unit of BOM2 product in third production plan (It was not automatically added because there is not stock)

* Process Production

* Launch Costing Background Process

* Select Costing tab of product BOM1 and verify:
  Cost: 1.36 (same as Cerveza Ale)
  Quantity: 1
  Total Stock Valuation: 1.36

* Select Costing tab of product BOM2 and verify
  Cost: 0.68
  Quantity: 2
  Total Stock Valuation: 1.36

* Select Costing tab of product BOM2 and verify
  Cost: 0.17
  Quantity: 4
  Total Stock Valuation: 0.68
(0100847)
dmiguelez (viewer)
2017-11-30 18:40

Wrong commit message did not link issue
(0100848)
dmiguelez (viewer)
2017-11-30 18:41

Fixed by commit: https://code.openbravo.com/erp/devel/pi/rev/e5b78d273dd8 [^]
Code Review Commit: https://code.openbravo.com/erp/devel/pi/rev/1fde3c15b1a6 [^]
(0100849)
dmiguelez (viewer)
2017-11-30 18:41

Code Review + changes Ok

- Issue History
Date Modified Username Field Change
2017-11-20 18:35 ngarcia New Issue
2017-11-20 18:35 ngarcia Assigned To => Triage Finance
2017-11-20 18:35 ngarcia OBNetwork customer => Yes
2017-11-20 18:35 ngarcia Modules => Core
2017-11-20 18:35 ngarcia Resolution time => 1512946800
2017-11-20 18:35 ngarcia Triggers an Emergency Pack => No
2017-11-20 18:36 ngarcia Issue Monitored: networkb
2017-11-21 09:42 vmromanos Assigned To Triage Finance => nonofrancisco
2017-11-21 18:41 ngarcia File Added: BOMProduction.fix
2017-11-23 15:33 nonofrancisco Status new => scheduled
2017-11-24 15:00 nonofrancisco Note Added: 0100707
2017-11-30 18:35 dmiguelez Note Added: 0100843
2017-11-30 18:40 dmiguelez Note Added: 0100847
2017-11-30 18:40 dmiguelez Status scheduled => resolved
2017-11-30 18:40 dmiguelez Fixed in SCM revision => https://code.openbravo.com/erp/devel/pi/rev/e5b78d273dd8 [^]
2017-11-30 18:40 dmiguelez Resolution open => fixed
2017-11-30 18:41 dmiguelez Note Added: 0100848
2017-11-30 18:41 dmiguelez Review Assigned To => dmiguelez
2017-11-30 18:41 dmiguelez Note Added: 0100849
2017-11-30 18:41 dmiguelez Status resolved => closed
2017-11-30 18:41 dmiguelez Fixed in Version => 3.0PR18Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker