metasfresh / metasfresh-webui-api-legacy

metasfresh webui API server
GNU General Public License v3.0
30 stars 32 forks source link

ID type ASI error #484

Open metas-lc opened 7 years ago

metas-lc commented 7 years ago

Is this a bug or feature request?

bug

What is the current behavior?

if you have an attribute which is an ID you get the following error when you open the attributes: server error Error: No M_AttributeValue_ID found for...

Which are the steps to reproduce?

  1. create a purchase order with a product with ASI containing karotten ID
  2. complete it and go to material receipt candidates
  3. open the ASI, close it => error note: there are cases when i can't create receipt

    What is the expected or desired behavior?

    no errors, receipt shall create

teosarca commented 7 years ago

I think it's happening because in org.adempiere.mm.attributes.api.impl.AttributeDAO.retrieveAttributeValuesMap(I_M_Attribute), in case the attribute has a AD_Val_Rule_ID set (and the "M_Material_Tracking_ID" has), the valrule will be also applied... but for some reason it's filtering everything out.