Date material policy BUG on receipt

Description

Use case :

production A :
used material "TEST MA" date material policy : "2015-03-21" , qty used 10 pcs;
production B :
used material "TEST MA" date material policy : "2015-03-23" , qty used 5 pcs;

Result :

m_storage has 2 lines :
-10pcs ; DMP (2015-03-21)
-5pcs ; DMP (2015-03-23)

Now I want to create material receipt for product Test MA with 20 pcs dated 2015-03-21.
I will get error : MInOutLineMA.doUpdate: Update return 2 instead of 1

If I use : 2015-03-19 material receipts get completed.

Environment

None

relates to

Activity

Show:

Carlos Ruiz April 9, 2015 at 5:11 PM

Found the issue and committed fix (migration script) - the problem was with products with ASI

Carlos Ruiz April 9, 2015 at 4:51 PM

Hi , can you please provide more info about the product? Or create a reproducible test case in demo?

I tried with a simple product (no ASI) and the issue is not reproduced.

Fixed

Details

Assignee

Reporter

Components

Priority

Created March 23, 2015 at 4:20 PM
Updated June 1, 2015 at 3:50 PM
Resolved April 9, 2015 at 5:11 PM