Le 18/08/2014 17:12, [email protected] a écrit :
Its actually lookupSupplierProduct, sorry I was must of been looking at it
wrong?
In any case I just added my own groovey to get distinct data.
Not sure if the multiple records for the same item is desired effect as
price is not in the returned data, so they are duplicate multiple rows,
unless I messed up the receiving some how, maybe there is not supposed to
multiple supplier records each time you buy. Although I believe I tested
using the original code (I only modify stuff in my hot-deploy project, so
original ofbiz stuff is pristine).


If you look at the entity entity-name="SupplierProduct" definition, you will 
see that the PK is constitued of

      <prim-key field="productId"/>
      <prim-key field="partyId"/>
      <prim-key field="currencyUomId"/>
      <prim-key field="minimumOrderQuantity"/>
      <prim-key field="availableFromDate"/>

That's why you get what seems to you multiple products. They are actually 
different seen from a supplier POV

Jacques



-----
Joel Fradkin
--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/LookupProduct-tp4653978p4653980.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to