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

Status

Assignee

Carlos Ruiz

Reporter

Michal Zilincar

Labels

None

Tested By

None

Components

Priority

Major
Configure